Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit ad965ed

Browse files
authored
fix(scripts): correctly execute ns-bundle for windows (#89)
Spawning child processes requires "shell: true" for windows. Fixes NativeScript/NativeScript#3715
1 parent 70e60a6 commit ad965ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: bin/ns-bundle

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function getCommand(flags) {
102102

103103
function spawnChildProcess(command, ...args) {
104104
return new Promise((resolve, reject) => {
105-
const childProcess = spawn(command, args, { stdio: "inherit", pwd: PROJECT_DIR });
105+
const childProcess = spawn(command, args, { stdio: "inherit", pwd: PROJECT_DIR, shell: true });
106106

107107
childProcess.on("close", (code) => {
108108
if (code === 0) {

0 commit comments

Comments
 (0)