From f2cb064bdcbd41d3b790d292de4ba6a40c241a36 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 19 Feb 2020 09:06:12 -0500 Subject: [PATCH] Try forcing new shell for child_process spawn when used for gulp plugin building --- client/gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/gulpfile.js b/client/gulpfile.js index 6173f4a9353..b7f150d1bec 100644 --- a/client/gulpfile.js +++ b/client/gulpfile.js @@ -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 }); }); }); });