Skip to content

Commit

Permalink
feat(cli-test): use powershell.exe as shell on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Maj committed Oct 31, 2024
1 parent 1be7a9e commit 5ca6da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli-test/src/cli/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const shell = {
try {
// Start child process
const childProcess = child.spawn(`${command}`, {
shell: true,
shell: process.platform === 'win32' ? 'powershell.exe' : true,
env: shell.assembleShellEnv(),
...shellOpts,
});
Expand Down Expand Up @@ -85,7 +85,7 @@ export const shell = {

// Start child process
const result = child.spawnSync(`${command}`, {
shell: true,
shell: process.platform === 'win32' ? 'powershell.exe' : true,
env: shell.assembleShellEnv(),
...shellOpts,
});
Expand Down

0 comments on commit 5ca6da8

Please sign in to comment.