Skip to content

Commit 36faf27

Browse files
committed
refactor: revert to spawn
1 parent ff432bf commit 36faf27

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/utils/src/lib/execute-process.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { type ChildProcess, exec } from 'node:child_process';
2-
import { buildCommandString, formatCommandLog } from './command.js';
1+
import { type ChildProcess, spawn } from 'node:child_process';
2+
import { formatCommandLog } from './command.js';
33
import { isVerbose } from './env.js';
44
import { ui } from './logging.js';
55
import { calcDuration } from './reports/utils.js';
@@ -164,9 +164,7 @@ export function executeProcess(cfg: ProcessConfig): Promise<ProcessResult> {
164164
}
165165

166166
return new Promise((resolve, reject) => {
167-
const commandString = buildCommandString(command, args ?? []);
168-
169-
const childProcess = exec(commandString, {
167+
const childProcess = spawn(command, args ?? [], {
170168
cwd,
171169
env: env ? { ...process.env, ...env } : process.env,
172170
windowsHide: false,

0 commit comments

Comments
 (0)