diff --git a/libraries/rush-lib/src/logic/pnpm/PnpmShrinkwrapFile.ts b/libraries/rush-lib/src/logic/pnpm/PnpmShrinkwrapFile.ts index 026bc04a4e..6fc993a929 100644 --- a/libraries/rush-lib/src/logic/pnpm/PnpmShrinkwrapFile.ts +++ b/libraries/rush-lib/src/logic/pnpm/PnpmShrinkwrapFile.ts @@ -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(); }