cli: use shell option to fix build issues on windows

This commit is contained in:
Patrik Oldsberg
2020-03-17 20:40:48 +01:00
parent e09bf890c2
commit 3772c82beb
6 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ function spawnPiped(cmd, options) {
};
}
const child = spawn(cmd[0], cmd.slice(1), { stdio: 'pipe', ...options });
const child = spawn(cmd[0], cmd.slice(1), { stdio: 'pipe', shell: true, ...options });
child.on('error', handleError);
child.on('exit', code => {
if (code) {