From 5d20c6246f299a3e71cbe862094cb37e2498d429 Mon Sep 17 00:00:00 2001 From: Maddy Date: Mon, 11 Oct 2021 18:16:22 +1100 Subject: [PATCH] npm run build on Windows with usernames containing space fails, fixed by wrapping tscBin in quotes --- bundle/scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/scripts/build.js b/bundle/scripts/build.js index 05cf37ce..d7bd23d9 100644 --- a/bundle/scripts/build.js +++ b/bundle/scripts/build.js @@ -56,7 +56,7 @@ function transpileFiles() { function util() { // const child = spawn("node", `${swcBin} src --out-dir dist --sync`.split(" "), { - const child = spawn("node", `${tscBin} -b .`.split(" "), { + const child = spawn("node", `\"${tscBin}\" -b .`.split(" "), { cwd: path.join(__dirname, "..", "..", "util"), env: process.env, shell: true,