Skip to content

Commit 7e26feb

Browse files
authored
Add shell to spawn to support windows (awslabs#585)
1 parent c485c27 commit 7e26feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/internal/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function execPipe (name, args = []) {
1818

1919
const exec = (name, args = [], opts = {}) => new Promise(resolve => {
2020
console.error(blue('[ run cmd ] ' + [name, ...args].join(' ')))
21-
cp.spawn(name, args, { stdio: 'inherit', cwd: root, ...opts })
21+
cp.spawn(name, args, { stdio: 'inherit', cwd: root, shell: true, ...opts })
2222
.on('exit', (status, signal) => resolve({ status, signal }))
2323
.on('error', error => resolve({ error }))
2424
})

0 commit comments

Comments
 (0)