From b8950354ea0648938e80d63a50a19783bdc92b86 Mon Sep 17 00:00:00 2001 From: Daniil Koryto Date: Fri, 10 Apr 2026 14:41:09 +0300 Subject: [PATCH] fix: use prepared Windows command runner --- src/install/deps.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/install/deps.ts b/src/install/deps.ts index d61fdd3..b31ef66 100644 --- a/src/install/deps.ts +++ b/src/install/deps.ts @@ -376,15 +376,12 @@ async function runCommand( args: readonly string[], options?: InstallCommandOptions, ): Promise { - const preparedCommand = - process.platform === "win32" - ? { - args: [...args], - command, - shell: true, - windowsHide: true, - } - : await prepareInstallCommand(command, args, options?.env ?? process.env); + const preparedCommand = await prepareInstallCommand( + command, + args, + options?.env ?? process.env, + process.platform, + ); return await new Promise((resolve, reject) => { const child = spawn(preparedCommand.command, preparedCommand.args, {