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: https://pnpm.io/package\_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.
Signature:
readonly globalAllowedDeprecatedVersions: Record<string, string> | undefined;