File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 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' ;
33import { isVerbose } from './env.js' ;
44import { ui } from './logging.js' ;
55import { 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 ,
You can’t perform that action at this time.
0 commit comments