File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ import { RushGlobalFolder } from '../api/RushGlobalFolder';
6161import { PackageManagerName } from '../api/packageManager/PackageManager' ;
6262import { PnpmPackageManager } from '../api/packageManager/PnpmPackageManager' ;
6363import { DependencySpecifier } from './DependencySpecifier' ;
64+ import { EnvironmentConfiguration } from '../api/EnvironmentConfiguration' ;
6465
6566// eslint-disable-next-line @typescript-eslint/interface-name-prefix
6667export interface CreateOptions {
@@ -1177,11 +1178,11 @@ export class InstallManager {
11771178 // Only explicitly define the store path if `pnpmStore` is using the default, or has been set to
11781179 // 'local'. If `pnpmStore` = 'global', then allow PNPM to use the system's default
11791180 // path. In all cases, this will be overridden by RUSH_PNPM_STORE_PATH
1180- switch ( this . _rushConfiguration . pnpmOptions . pnpmStore ) {
1181- case 'local' : {
1181+ if (
1182+ this . _rushConfiguration . pnpmOptions . pnpmStore === 'local' ||
1183+ EnvironmentConfiguration . pnpmStorePathOverride
1184+ )
11821185 args . push ( '--store' , this . _rushConfiguration . pnpmOptions . pnpmStorePath ) ;
1183- break ;
1184- }
11851186 }
11861187
11871188 // we are using the --no-lock flag for now, which unfortunately prints a warning, but should be OK
You can’t perform that action at this time.
0 commit comments