Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/rush-lib > PnpmOptionsConfiguration > globalPeerDependencyRules

PnpmOptionsConfiguration.globalPeerDependencyRules property

The globalPeerDependencyRules setting provides various settings for suppressing validation errors that are reported during installation with strictPeerDependencies=true. The settings are copied into the pnpm.peerDependencyRules field of the common/temp/package.json file that is generated by Rush during installation.

Order of precedence: .pnpmfile.cjs has the highest precedence, followed by unsupportedPackageJsonSettings, globalPeerDependencyRules, globalPackageExtensions, and globalOverrides has lowest precedence.

https://pnpm.io/package\_json\#pnpmpeerdependencyrules

Signature:

readonly globalPeerDependencyRules: IPnpmPeerDependencyRules | undefined;