Skip to content

Commit

Permalink
Fix the node path parsing issue and bump the package version
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdalling committed Feb 8, 2022
1 parent 88699dc commit a5f181f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capacitor-resources",
"version": "2.0.5",
"version": "2.0.6",
"description": "Generates icon & splash screen for capacitor projects using javascript only.",
"main": "index.js",
"preferGlobal": true,
Expand Down
4 changes: 2 additions & 2 deletions src/copy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ module.exports = () => {
const copyAndroid = path.join(__dirname, './platforms/android/index')
const copyIOS = path.join(__dirname, './platforms/ios/index')
// display.header('Copying resources to native projects...')
await exec(`npx cross-env CAPACITOR_PROJECT_ROOT=${paths.getRootPath()} node ${copyAndroid}`)
await exec(`npx cross-env CAPACITOR_PROJECT_ROOT="${paths.getRootPath()}" node "${copyAndroid}"`)
// display.success('Copied android resources')
await exec(`npx cross-env CAPACITOR_PROJECT_ROOT=${paths.getRootPath()} node ${copyIOS}`)
await exec(`npx cross-env CAPACITOR_PROJECT_ROOT="${paths.getRootPath()}" node "${copyIOS}"`)
// display.success('Copied iOS resources')
resolve()
} catch (e) {
Expand Down

0 comments on commit a5f181f

Please sign in to comment.