Skip to content

Commit

Permalink
* proj: issue #218, fix exec helper not work on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jun 18, 2024
1 parent dbec684 commit da183e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/utilities/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {spawn, exec as execute, ExecOptions, SpawnOptionsWithoutStdio} from 'chi

export function exec(command: string, args?: ReadonlyArray<string>, options?: SpawnOptionsWithoutStdio): Promise<number | null> {
return new Promise((resolve) => {
const spawnObj = spawn(command, args ?? [], {stdio: 'inherit', ...options});
const spawnObj = spawn(command, args ?? [], {stdio: 'inherit', shell: true, ...options});
spawnObj.on('close', (code) => {
resolve(code);
});
Expand Down

0 comments on commit da183e7

Please sign in to comment.