@@ -10,7 +10,7 @@ import * as semver from 'semver';
1010import * as tar from 'tar' ;
1111import * as wordwrap from 'wordwrap' ;
1212import globEscape = require( 'glob-escape' ) ;
13- import { JsonFile , LockFile } from '@microsoft/node-core-library' ;
13+ import { JsonFile , LockFile , Text } from '@microsoft/node-core-library' ;
1414
1515import AsyncRecycler from '../../utilities/AsyncRecycler' ;
1616import RushConfiguration , {
@@ -602,8 +602,7 @@ export default class InstallManager {
602602 const pathToDeleteWithoutStar : string = path . join ( commonNodeModulesFolder , RushConstants . rushTempNpmScope ) ;
603603 console . log ( `Deleting ${ pathToDeleteWithoutStar } \\*` ) ;
604604 // Glob can't handle Windows paths
605- const normalizedpathToDeleteWithoutStar : string
606- = Utilities . getAllReplaced ( pathToDeleteWithoutStar , '\\' , '/' ) ;
605+ const normalizedpathToDeleteWithoutStar : string = Text . replaceAll ( pathToDeleteWithoutStar , '\\' , '/' ) ;
607606
608607 // Example: "C:/MyRepo/common/temp/node_modules/@rush-temp/*"
609608 for ( const tempModulePath of glob . sync ( globEscape ( normalizedpathToDeleteWithoutStar ) + '/*' ) ) {
@@ -736,8 +735,7 @@ export default class InstallManager {
736735 const pathToDeleteWithoutStar : string = path . join ( this . _rushConfiguration . commonTempFolder ,
737736 'node_modules' , RushConstants . rushTempNpmScope ) ;
738737 // Glob can't handle Windows paths
739- const normalizedpathToDeleteWithoutStar : string
740- = Utilities . getAllReplaced ( pathToDeleteWithoutStar , '\\' , '/' ) ;
738+ const normalizedpathToDeleteWithoutStar : string = Text . replaceAll ( pathToDeleteWithoutStar , '\\' , '/' ) ;
741739
742740 let anyChanges : boolean = false ;
743741
0 commit comments