Home > @microsoft/rush-lib > PnpmOptionsConfiguration > globalOverrides
PnpmOptionsConfiguration.globalOverrides property
The "globalOverrides" setting provides a simple mechanism for overriding version selections for all dependencies of all projects in the monorepo workspace. The settings are copied into the pnpm.overrides
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.
PNPM documentation: https://pnpm.io/package\_json\#pnpmoverrides
Signature:
readonly globalOverrides: Record<string, string> | undefined;