Skip to content
This repository was archived by the owner on Jul 2, 2026. It is now read-only.

Commit 9e7702f

Browse files
committed
fix: use shell for windows
1 parent 7adac12 commit 9e7702f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/system-operations/cliCommands.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export async function runCliCommand(
4040
NODE_ENV: 'production',
4141
SF_LOG_LEVEL: logLevel,
4242
...(options?.env ?? {}) // Ensure any additional env vars in options are included
43-
}
43+
},
44+
// On Windows, use shell to resolve executable extensions (.exe, .cmd, .bat)
45+
shell: process.platform === 'win32'
4446
};
4547
delete spawnOptions.stdin;
4648

0 commit comments

Comments
 (0)