Rush StackShopBlogEvents
Skip to main content

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

PnpmOptionsConfiguration.globalAllowedDeprecatedVersions property

The globalAllowedDeprecatedVersions setting suppresses installation warnings for package versions that the NPM registry reports as being deprecated. This is useful if the deprecated package is an indirect dependency of an external package that has not released a fix. The settings are copied into the pnpm.allowedDeprecatedVersions field of the common/temp/package.json file that is generated by Rush during installation.

PNPM documentation:\_json\#pnpmalloweddeprecatedversions

If you are working to eliminate a deprecated version, it's better to specify allowedDeprecatedVersions in the package.json file for individual Rush projects.


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