Skip to content

Commit

Permalink
build: fix spawning .bat on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Mar 2, 2025
1 parent 0e9d909 commit b49334f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/spawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ function spawn (command, args, cwdPath, stdio, env) {
const cp = require('child_process').spawn(command, args, {
env: env || process.env,
cwd,
stdio: stdio || 'inherit'
stdio: stdio || 'inherit',
shell: command.endsWith('.bat') || command.endsWith('.bat"')
})
const p = new Promise((resolve, reject) => {
cp.once('exit', (code, reason) => {
Expand Down

0 comments on commit b49334f

Please sign in to comment.