File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/publish-flat/src 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 { execSync } from 'node:child_process' ;
1+ import { execFileSync } from 'node:child_process' ;
22import os from 'node:os' ;
33import path from 'node:path' ;
44import Arborist from '@npmcli/arborist' ;
@@ -100,11 +100,9 @@ export class PublishFlat {
100100 const executor = this . options . useYarn ? 'yarn' : 'npm' ;
101101 const args = [ 'publish' , `"${ tempDir } "` ] . concat ( this . options . publishArguments || [ ] ) ;
102102
103- const command = ` ${ executor } ${ args . join ( ' ' ) } ` ;
103+ this . logger . info ( `Running " ${ executor } ${ args . join ( ' ' ) } " ...` ) ;
104104
105- this . logger . info ( `Running "${ command } " ...` ) ;
106-
107- const stdout = execSync ( command ) . toString ( ) . trim ( ) ;
105+ const stdout = execFileSync ( executor , args ) . toString ( ) . trim ( ) ;
108106
109107 if ( stdout ) {
110108 this . logger . info ( stdout ) ;
You can’t perform that action at this time.
0 commit comments