Skip to content

Commit e2de33f

Browse files
committed
build: fix spawning .bat on Windows
1 parent cc4b9aa commit e2de33f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/spawn.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function spawn (command, args, cwdPath, stdio, env) {
2020
const cp = require('child_process').spawn(command, args, {
2121
env: env || process.env,
2222
cwd,
23-
stdio: stdio || 'inherit'
23+
stdio: stdio || 'inherit',
24+
shell: command.endsWith('.bat') || command.endsWith('.bat"')
2425
})
2526
const p = new Promise((resolve, reject) => {
2627
cp.once('exit', (code, reason) => {

0 commit comments

Comments
 (0)