npm run build on Windows with usernames containing spaces fails, fixed by escaping tsc.js location in node_modules

This commit is contained in:
Maddy 2021-10-12 16:14:37 +11:00
parent dbd327f89d
commit 72a2504299

View File

@ -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, ".."),