Skip to content

Commit 68d77fb

Browse files
fix: CLI to allow commands/args in spawnSync() to contain whitespace (#821)
1 parent 3d9a8da commit 68d77fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/compileApplicationToWasm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,16 @@ export async function compileApplicationToWasm(
117117

118118
try {
119119
let wizerProcess = spawnSync(
120-
wizer,
120+
`"${wizer}"`,
121121
[
122122
"--inherit-env=true",
123123
"--allow-wasi",
124124
"--dir=.",
125125
...starlingMonkey ? [`--dir=${dirname(wizerInput)}`] : [],
126126
`--wasm-bulk-memory=true`,
127127
"-r _start=wizer.resume",
128-
`-o=${output}`,
129-
wasmEngine,
128+
`-o="${output}"`,
129+
`"${wasmEngine}"`,
130130
],
131131
{
132132
stdio: [null, process.stdout, process.stderr],

src/containsSyntaxErrors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function containsSyntaxErrors(input) {
66
`"${process.execPath}"`,
77
[
88
"--check",
9-
input,
9+
`"${input}"`,
1010
],
1111
{
1212
stdio: [null, null, null],

0 commit comments

Comments
 (0)