From fabfdcf82a3d0634a95bce60da7004a5dc5ac0bb Mon Sep 17 00:00:00 2001 From: Victor Adossi Date: Thu, 9 Oct 2025 01:18:27 +0900 Subject: [PATCH] fix: remove shell setting for wizer call 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`. --- src/componentize.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/componentize.js b/src/componentize.js index 5bd6c0ee..eb9df22f 100644 --- a/src/componentize.js +++ b/src/componentize.js @@ -257,8 +257,8 @@ export async function componentize( let args = `--initializer-script-path ${initializerPath} --strip-path-prefix ${workspacePrefix}/ ${sourcePath}`; runtimeArgs = runtimeArgs ? `${runtimeArgs} ${args}` : args; - let preopens = [`--dir ${sourcesDir}`]; - preopens.push(`--mapdir /::${workspacePrefix}`); + let preopens = [`--dir=${sourcesDir}`]; + preopens.push(`--mapdir=/::${workspacePrefix}`); let postProcess; @@ -279,7 +279,6 @@ export async function componentize( stdio: [null, stdout, 'pipe'], env, input: runtimeArgs, - shell: true, encoding: 'utf-8', }, );