From f749aea51a4544166d7e8b91a0931a96f9e304a0 Mon Sep 17 00:00:00 2001 From: Maddy Date: Tue, 12 Oct 2021 16:14:37 +1100 Subject: [PATCH] npm run build on Windows with usernames containing spaces fails, fixed by escaping tsc.js location in node_modules --- bundle/scripts/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle/scripts/build.js b/bundle/scripts/build.js index a9798eff..e8eb24b8 100644 --- a/bundle/scripts/build.js +++ b/bundle/scripts/build.js @@ -34,9 +34,9 @@ console.log("Compiling src files ..."); console.log( execSync( - "node " + + "node \"" + path.join(__dirname, "..", "node_modules", "typescript", "lib", "tsc.js") + - " -p " + + "\" -p " + path.join(__dirname, ".."), { cwd: path.join(__dirname, ".."),