summary refs log tree commit diff
path: root/bundle
diff options
context:
space:
mode:
authorMaddy <ty.carlier@gmail.com>2021-10-11 18:16:22 +1100
committerMaddy <ty.carlier@gmail.com>2021-10-11 18:24:28 +1100
commitf210316b2475b19e7818fd0f5fbeb3fe4656e475 (patch)
tree35cf3b56cc0644f962ec2a58832a91499416bfe0 /bundle
parent:bug: fix typing (diff)
downloadserver-f210316b2475b19e7818fd0f5fbeb3fe4656e475.tar.xz
npm run build on Windows with usernames containing space fails, fixed by wrapping tscBin in quotes
Diffstat (limited to 'bundle')
-rw-r--r--bundle/scripts/build.js2
1 files changed, 1 insertions, 1 deletions
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,