@@ -49,7 +49,7 @@ const MAX_INSTALL_ATTEMPTS: number = 2;
4949 * As a temporary workaround, augment the type.
5050 */
5151import { CreateOptions } from 'tar' ;
52- import { RushGlobalFolders } from '../api/RushGlobalFolders ' ;
52+ import { RushGlobalFolder } from '../api/RushGlobalFolder ' ;
5353
5454export interface CreateOptions { // tslint:disable-line:interface-name
5555 /**
@@ -114,7 +114,7 @@ export interface IInstallManagerOptions {
114114 */
115115export class InstallManager {
116116 private _rushConfiguration : RushConfiguration ;
117- private _rushGlobalFolders : RushGlobalFolders ;
117+ private _rushGlobalFolder : RushGlobalFolder ;
118118 private _commonNodeModulesMarker : LastInstallFlag ;
119119 private _commonTempFolderRecycler : AsyncRecycler ;
120120
@@ -239,12 +239,12 @@ export class InstallManager {
239239
240240 constructor (
241241 rushConfiguration : RushConfiguration ,
242- rushGlobalFolders : RushGlobalFolders ,
242+ rushGlobalFolder : RushGlobalFolder ,
243243 purgeManager : PurgeManager ,
244244 options : IInstallManagerOptions
245245 ) {
246246 this . _rushConfiguration = rushConfiguration ;
247- this . _rushGlobalFolders = rushGlobalFolders ;
247+ this . _rushGlobalFolder = rushGlobalFolder ;
248248 this . _commonTempFolderRecycler = purgeManager . commonTempFolderRecycler ;
249249 this . _options = options ;
250250
@@ -349,7 +349,7 @@ export class InstallManager {
349349 */
350350 public ensureLocalPackageManager ( ) : Promise < void > {
351351 // Example: "C:\Users\YourName\.rush"
352- const rushUserFolder : string = this . _rushGlobalFolders . rushNodeSpecificGlobalFolder ;
352+ const rushUserFolder : string = this . _rushGlobalFolder . nodeSpecificPath ;
353353
354354 if ( ! FileSystem . exists ( rushUserFolder ) ) {
355355 console . log ( 'Creating ' + rushUserFolder ) ;
@@ -933,7 +933,7 @@ export class InstallManager {
933933
934934 private _checkIfReleaseIsPublished ( ) : Promise < boolean > {
935935 return Promise . resolve ( ) . then ( ( ) => {
936- const lastCheckFile : string = path . join ( this . _rushGlobalFolders . rushNodeSpecificGlobalFolder ,
936+ const lastCheckFile : string = path . join ( this . _rushGlobalFolder . nodeSpecificPath ,
937937 'rush-' + Rush . version , 'last-check.flag' ) ;
938938
939939 if ( FileSystem . exists ( lastCheckFile ) ) {
0 commit comments