Skip to content

Commit df715bc

Browse files
fix: remove shell setting for wizer call (#303)
This commit removes the `shell: true` configuration for the Wizer call, as it triggers a warning with more recent NodeJS versions, due to attempting to pass options to an spawned command when `shell: true`.
1 parent 3fba37c commit df715bc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/componentize.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ export async function componentize(
257257
let args = `--initializer-script-path ${initializerPath} --strip-path-prefix ${workspacePrefix}/ ${sourcePath}`;
258258
runtimeArgs = runtimeArgs ? `${runtimeArgs} ${args}` : args;
259259

260-
let preopens = [`--dir ${sourcesDir}`];
261-
preopens.push(`--mapdir /::${workspacePrefix}`);
260+
let preopens = [`--dir=${sourcesDir}`];
261+
preopens.push(`--mapdir=/::${workspacePrefix}`);
262262

263263
let postProcess;
264264

@@ -279,7 +279,6 @@ export async function componentize(
279279
stdio: [null, stdout, 'pipe'],
280280
env,
281281
input: runtimeArgs,
282-
shell: true,
283282
encoding: 'utf-8',
284283
},
285284
);

0 commit comments

Comments
 (0)