From 5d4cee57b5e56d827a76d02fad7fd5dfb3a389f3 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Tue, 28 Feb 2017 09:59:43 +0200 Subject: [PATCH] fix(scripts): correctly execute ns-bundle for windows Spawning child processes requires "shell: true" for windows. Fixes https://github.com/NativeScript/NativeScript/issues/3715 --- bin/ns-bundle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ns-bundle b/bin/ns-bundle index e2973b2c..72008625 100644 --- a/bin/ns-bundle +++ b/bin/ns-bundle @@ -102,7 +102,7 @@ function getCommand(flags) { function spawnChildProcess(command, ...args) { return new Promise((resolve, reject) => { - const childProcess = spawn(command, args, { stdio: "inherit", pwd: PROJECT_DIR }); + const childProcess = spawn(command, args, { stdio: "inherit", pwd: PROJECT_DIR, shell: true }); childProcess.on("close", (code) => { if (code === 0) {