Skip to content

Commit

Permalink
fix(build): use cross-env to execute pkg and module-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvitora committed Apr 10, 2019
1 parent ced6d6c commit 5c0d30f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/gulp.modules.js
Expand Up @@ -76,7 +76,7 @@ const buildModule = (modulePath, cb) => {

const packageModule = (modulePath, cb) => {
exec(
`./node_modules/.bin/module-builder package -v --out ../../out/binaries/modules/%name%.tgz`,
`cross-env ./node_modules/.bin/module-builder package -v --out ../../out/binaries/modules/%name%.tgz`,
{ cwd: modulePath },
(err, stdout, stderr) => {
if (err) {
Expand Down
2 changes: 1 addition & 1 deletion build/gulp.package.js
Expand Up @@ -38,7 +38,7 @@ const packageApp = async () => {
const packageJson = Object.assign(realPackageJson, additionalPackageJson)
await fse.writeFile(tempPkgPath, JSON.stringify(packageJson, null, 2), 'utf8')
await execAsync(
`../../node_modules/.bin/pkg --targets ${getTargetOSNodeVersion()} --output ../binaries/bp ./package.json`,
`cross-env ../../node_modules/.bin/pkg --targets ${getTargetOSNodeVersion()} --output ../binaries/bp ./package.json`,
{
cwd
}
Expand Down

0 comments on commit 5c0d30f

Please sign in to comment.