Skip to content

Commit e0137c2

Browse files
tylerablackhamjaylinski
authored andcommitted
fix: enable shell mode for spawn to resolve Windows EINVAL issue
1 parent e914d60 commit e0137c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/util/exec-file.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ async function execFileWithInheritedOutput(command, args) {
2323
return new Promise((resolve, reject) => {
2424
const resolvedCommand = preferLocalDependencies(command);
2525
const child = childProcess.spawn(resolvedCommand, args, {
26-
stdio: 'inherit'
26+
stdio: 'inherit',
27+
shell: true
2728
});
2829
child.on('exit', code => {
2930
if (code !== 0) {

0 commit comments

Comments
 (0)