File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,13 +14,14 @@ export const __dirname = dirname(__filename)
1414
1515export const projectRoot = path . resolve ( __dirname , ".." ) ;
1616export const runCommand = async ( command : string ) : Promise < string > => {
17- console . log ( `\n[CMD]: ${ command } ` ) ;
18- try {
19- const { stdout } = await execPromise ( command , { cwd : projectRoot } ) ;
20- console . log ( `[OUTPUT]:\n${ stdout } ` ) ;
21- return stdout ;
22- } catch ( error : any ) {
23- console . error ( `[ERROR]:\n${ error . stderr || error . message } ` ) ;
24- throw error ;
25- }
17+ console . log ( `\n[CMD]: ${ command } ` ) ;
18+ try {
19+ const { stdout, stderr } = await execPromise ( command , { cwd : projectRoot } ) ;
20+ console . log ( `[ERROR]:\n${ stderr } ` ) ;
21+ console . log ( `[OUTPUT]:\n${ stdout } ` ) ;
22+ return stdout ;
23+ } catch ( error : any ) {
24+ console . error ( `[ERROR]:\n${ error . stderr || error . message } ` ) ;
25+ throw error ;
26+ }
2627} ;
You can’t perform that action at this time.
0 commit comments