Skip to content

Commit

Permalink
Allow project to be in a directory that contains spaces (#1433)
Browse files Browse the repository at this point in the history
  • Loading branch information
chapa committed Dec 15, 2020
1 parent 3c33514 commit 4c67c30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ shell.cp(path.join(__dirname, '..', 'LICENSE'), './')
createReadme()

const rollup = path.join(__dirname, '../node_modules/.bin/rollup')
const {code} = shell.exec(`${rollup} --config "../../rollup.config.js"`)
const {code} = shell.exec(`"${rollup}" --config "../../rollup.config.js"`)

if (code !== 0) {
shell.exit(code)
Expand Down
2 changes: 1 addition & 1 deletion scripts/match-snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path')
const crossEnv = path.join(__dirname, '../node_modules/.bin/cross-env')
const rollup = path.join(__dirname, '../node_modules/.bin/rollup')
const {code} = shell.exec(
`${crossEnv} MATCH_SNAPSHOT=true ${rollup} --config "../../rollup.config.js"`
`"${crossEnv}" MATCH_SNAPSHOT=true "${rollup}" --config "../../rollup.config.js"`
)

if (code !== 0) {
Expand Down

0 comments on commit 4c67c30

Please sign in to comment.