Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.33 KB

File metadata and controls

23 lines (16 loc) · 1.33 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

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

PnpmOptionsConfiguration.globalPackageExtensions property

The globalPackageExtension setting provides a way to patch arbitrary package.json fields for any PNPM dependency of the monorepo. The settings are copied into the pnpm.packageExtensions field of the common/temp/package.json file that is generated by Rush during installation. The globalPackageExtension setting has similar capabilities as .pnpmfile.cjs but without the downsides of an executable script (nondeterminism, unreliable caching, performance concerns).

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\#pnpmpackageextensions

Signature:

readonly globalPackageExtensions: Record<string, IPnpmPackageExtension> | undefined;