Skip to content

Commit dd30f4d

Browse files
committed
chore(js-toolkit): fix Windows build
1 parent ba0d06c commit dd30f4d

File tree

1 file changed

+5
-0
lines changed
  • projects/js-toolkit/scripts/util

1 file changed

+5
-0
lines changed

projects/js-toolkit/scripts/util/spawn.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ const childProcess = require('child_process');
77

88
module.exports = function spawn(cmd, args = [], options = {}) {
99
const result = childProcess.spawnSync(cmd, args, {
10+
shell: true,
1011
stdio: 'inherit',
1112
...options,
1213
});
1314

15+
if (result.error) {
16+
throw result.error;
17+
}
18+
1419
if (result.status !== 0) {
1520
throw new Error(`Execution failure: ${cmd} ${args.join(' ')}`);
1621
}

0 commit comments

Comments
 (0)