Try forcing new shell for child_process spawn when used for gulp plugin building

This commit is contained in:
Dannon Baker
2020-02-19 09:06:12 -05:00
parent 04ac25ce56
commit f2cb064bdc
+2 -2
View File
@@ -78,9 +78,9 @@ function buildPlugins(callback){
files.map( file => {
const f = path.join(process.cwd(), file).slice(0, -12);
console.log("Installing Dependencies for", f);
spawn('yarn', ['install', '--network-timeout', '300000', '--check-files'], { cwd: f, stdio: 'inherit' });
spawn('yarn', ['install', '--network-timeout', '300000', '--check-files'], { cwd: f, stdio: 'inherit', shell: true });
console.log("Building ", f);
spawn('yarn', ['build'], { cwd: f, stdio: 'inherit' });
spawn('yarn', ['build'], { cwd: f, stdio: 'inherit', shell: true });
});
});
});