Skip to content

Commit 62ba1f1

Browse files
committed
Undo rename a const
1 parent fc302e5 commit 62ba1f1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/rush-lib/src/api/packageManager/PnpmPackageManager.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,25 @@ export class PnpmPackageManager extends PackageManager {
2222
public constructor(version: string) {
2323
super(version, 'pnpm');
2424

25-
const pnpmVersion: semver.SemVer = new semver.SemVer(version);
25+
const parsedVersion: semver.SemVer = new semver.SemVer(version);
2626

2727
this.supportsResolutionStrategy = false;
2828

29-
if (pnpmVersion.major >= 3) {
29+
if (parsedVersion.major >= 3) {
3030
this._shrinkwrapFilename = RushConstants.pnpmV3ShrinkwrapFilename;
3131

32-
if (pnpmVersion.minor >= 1) {
32+
if (parsedVersion.minor >= 1) {
3333
// Introduced in version 3.1.0-0
3434
this.supportsResolutionStrategy = true;
3535
}
3636
} else {
3737
this._shrinkwrapFilename = RushConstants.pnpmV1ShrinkwrapFilename;
3838
}
3939

40-
if (pnpmVersion.major <= 2) {
40+
if (parsedVersion.major <= 2) {
4141
// node_modules/.shrinkwrap.yaml
4242
this.internalShrinkwrapRelativePath = path.join('node_modules', '.shrinkwrap.yaml');
43-
} else if (pnpmVersion.major <= 3) {
43+
} else if (parsedVersion.major <= 3) {
4444
// node_modules/.pnpm-lock.yaml
4545
this.internalShrinkwrapRelativePath = path.join('node_modules', '.pnpm-lock.yaml');
4646
} else {

apps/rush-lib/src/logic/InstallManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ export class InstallManager {
11501150
args.push('--verbose');
11511151
}
11521152
} else if (this._rushConfiguration.packageManager === 'pnpm') {
1153-
// args.push('--store', this._rushConfiguration.pnpmStoreFolder);
1153+
args.push('--store', this._rushConfiguration.pnpmStoreFolder);
11541154

11551155
// we are using the --no-lock flag for now, which unfortunately prints a warning, but should be OK
11561156
// since rush already has its own install lock file which will invalidate the cache for us.

0 commit comments

Comments
 (0)