Rush StackShopBlogEvents
Skip to main content

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:\_json\#pnpmoverrides


readonly globalOverrides: Record<string, string> | undefined;