Skip to content

Commit

Permalink
chore: address the PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
g-chao committed Dec 16, 2024
1 parent bc6d58d commit 2ffe13f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libraries/rush-lib/src/logic/pnpm/PnpmShrinkwrapFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,7 @@ export class PnpmShrinkwrapFile extends BaseShrinkwrapFile {
this.overrides = new Map(Object.entries(shrinkwrapJson.overrides || {}));
this.packageExtensionsChecksum = shrinkwrapJson.packageExtensionsChecksum;

// Lockfile v9 always has "." in importers filed.
this.isWorkspaceCompatible =
this.shrinkwrapFileMajorVersion >= ShrinkwrapFileMajorVersion.V9
? this.importers.size >= 1
: this.importers.size > 0;
this.isWorkspaceCompatible = this.importers.size > 0;

this._integrities = new Map();
}
Expand Down

0 comments on commit 2ffe13f

Please sign in to comment.