File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
apps/rush-lib/src/utilities Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -297,30 +297,6 @@ export class Utilities {
297297 }
298298 }
299299
300- /**
301- * Executes the command with the specified command-line parameters, and waits for it to complete.
302- * The current directory will be set to the specified workingDirectory.
303- */
304- public static executeCommandAsync ( command : string , args : string [ ] , workingDirectory : string ,
305- environment ?: IEnvironment ) : child_process . ChildProcess {
306- // This is a workaround for GitHub issue #25330. It is not as complete as the workaround above,
307- // but there doesn't seem to be an easy asynchronous solution.
308- // https://github.com/nodejs/node-v0.x-archive/issues/25330
309- if ( fsx . existsSync ( command + '.cmd' ) ) {
310- command += '.cmd' ;
311- }
312-
313- // This is needed since we specify shell=true below:
314- const escapedCommand : string = Utilities . escapeShellParameter ( command ) ;
315- const escapedArgs : string [ ] = args . map ( ( x ) => Utilities . escapeShellParameter ( x ) ) ;
316-
317- return child_process . spawn ( escapedCommand , escapedArgs , {
318- cwd : workingDirectory ,
319- shell : true ,
320- env : Utilities . _createEnvironmentForRushCommand ( '' , environment )
321- } ) ;
322- }
323-
324300 /**
325301 * Executes the command using cmd if running on windows, or using sh if running on a non-windows OS.
326302 * @param command - the command to run on shell
You can’t perform that action at this time.
0 commit comments