Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions src/install/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,15 +376,12 @@ async function runCommand(
args: readonly string[],
options?: InstallCommandOptions,
): Promise<InstallCommandResult> {
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<InstallCommandResult>((resolve, reject) => {
const child = spawn(preparedCommand.command, preparedCommand.args, {
Expand Down
Loading