Home > @microsoft/rush-lib > PnpmOptionsConfiguration > trustPolicy
PnpmOptionsConfiguration.trustPolicy property
The trust policy controls whether pnpm should block installation of package versions where the trust level has decreased (e.g., a package previously published with provenance is now published without it). Setting this to "no-downgrade" enables the protection.
Signature:
readonly trustPolicy: PnpmTrustPolicy | undefined;
Remarks
(SUPPORTED ONLY IN PNPM 10.21.0 AND NEWER)
PNPM documentation: https://pnpm.io/settings\#trustpolicy