We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba0d06c commit dd30f4dCopy full SHA for dd30f4d
projects/js-toolkit/scripts/util/spawn.js
@@ -7,10 +7,15 @@ const childProcess = require('child_process');
7
8
module.exports = function spawn(cmd, args = [], options = {}) {
9
const result = childProcess.spawnSync(cmd, args, {
10
+ shell: true,
11
stdio: 'inherit',
12
...options,
13
});
14
15
+ if (result.error) {
16
+ throw result.error;
17
+ }
18
+
19
if (result.status !== 0) {
20
throw new Error(`Execution failure: ${cmd} ${args.join(' ')}`);
21
}
0 commit comments