Skip to content

Commit dd0baa0

Browse files
Copilotbmiddha
andauthored
fix: disable strictPeerDependencies for pnpm 11 bootstrap compatibility
Agent-Logs-Url: https://github.com/microsoft/rushstack/sessions/fc01eb92-a823-40a9-9fbd-ef9321b661fb Co-authored-by: bmiddha <5100938+bmiddha@users.noreply.github.com>
1 parent b9ce7f1 commit dd0baa0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

common/config/rush/pnpm-config.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,16 @@
162162
*
163163
* The default value is false to avoid legacy compatibility issues.
164164
* It is strongly recommended to set `strictPeerDependencies=true`.
165+
*
166+
* NOTE (pnpm 11 compatibility): This is temporarily set to false because pnpm 11 moved
167+
* workspace-level settings (including `peerDependencyRules`) from `package.json` to
168+
* `pnpm-workspace.yaml`, but the bootstrap version of Rush (5.175.1) writes
169+
* `globalPeerDependencyRules` to `package.json` only. The known peer dependency exceptions
170+
* are documented in `globalPeerDependencyRules` below. Once a version of Rush that supports
171+
* writing settings to `pnpm-workspace.yaml` for pnpm 11 is released, this should be reverted
172+
* to `true`.
165173
*/
166-
"strictPeerDependencies": true,
174+
"strictPeerDependencies": false,
167175

168176
/**
169177
* Environment variables that will be provided to PNPM.

0 commit comments

Comments
 (0)