Skip to content

Commit ea11482

Browse files
authored
Enable strictChangefileValidation experiment (#5783)
* Enable strictChangefileValidation. * Update pnpm-config.json from the template. * Delete chnaagefiles for non-published packages.
1 parent 81eb9d9 commit ea11482

File tree

5 files changed

+73
-31
lines changed

5 files changed

+73
-31
lines changed

common/changes/@rushstack/localization-plugin/move-terminal_2022-01-20-19-34.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

common/changes/@rushstack/tls-sync-vscode-shared/bmiddha-tls-sync_2025-06-27-01-35.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

common/changes/tls-sync-vscode-extension-pack/bmiddha-tls-sync_2025-07-01-00-21.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

common/config/rush/experiments.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,12 @@
124124
* macOS to store extended attributes on filesystems that don't support them, and should generally not
125125
* be included in the shared build cache.
126126
*/
127-
"omitAppleDoubleFilesFromBuildCache": true
127+
"omitAppleDoubleFilesFromBuildCache": true,
128+
129+
/**
130+
* If true, "rush change --verify" will report errors if change files reference projects that do not
131+
* exist in the Rush configuration, or if change files target a project that belongs to a lockstepped
132+
* version policy but is not the policy's main project.
133+
*/
134+
"strictChangefileValidation": true
128135
}

common/config/rush/pnpm-config.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,58 @@
9999
*/
100100
// "minimumReleaseAgeExclude": ["@myorg/*"],
101101

102+
/**
103+
* The trust policy controls whether pnpm should block installation of package versions where
104+
* the trust level has decreased (e.g., a package previously published with provenance is now
105+
* published without it). Setting this to `"no-downgrade"` enables the protection.
106+
*
107+
* (SUPPORTED ONLY IN PNPM 10.21.0 AND NEWER)
108+
*
109+
* PNPM documentation: https://pnpm.io/settings#trustpolicy
110+
*
111+
* Possible values are: `off` and `no-downgrade`.
112+
* The default is `off`.
113+
*/
114+
// "trustPolicy": "no-downgrade",
115+
116+
/**
117+
* An array of package names or patterns to exclude from the trust policy check.
118+
* These packages will be allowed to install even if their trust level has decreased.
119+
* Patterns are supported using glob syntax (e.g., "@myorg/*" to exclude all packages
120+
* from an organization).
121+
*
122+
* For example:
123+
*
124+
* "trustPolicyExclude": ["@babel/core@7.28.5", "chokidar@4.0.3", "@myorg/*"]
125+
*
126+
* (SUPPORTED ONLY IN PNPM 10.22.0 AND NEWER)
127+
*
128+
* PNPM documentation: https://pnpm.io/settings#trustpolicyexclude
129+
*
130+
* The default value is [].
131+
*/
132+
// "trustPolicyExclude": ["@myorg/*"],
133+
134+
/**
135+
* The number of minutes after which pnpm will ignore trust level downgrades. Packages
136+
* published longer ago than this threshold will not be blocked even if their trust level
137+
* has decreased. This is useful when enabling strict trust policies, as it allows older versions
138+
* of packages (which may lack a process for publishing with signatures or provenance) to be
139+
* installed without manual exclusion, assuming they are safe due to their age.
140+
*
141+
* For example, the following setting ignores trust level changes for packages published
142+
* more than 14 days ago:
143+
*
144+
* "trustPolicyIgnoreAfterMinutes": 20160
145+
*
146+
* (SUPPORTED ONLY IN PNPM 10.27.0 AND NEWER)
147+
*
148+
* PNPM documentation: https://pnpm.io/settings#trustpolicyignoreafter
149+
*
150+
* The default value is undefined (no exclusion).
151+
*/
152+
// "trustPolicyIgnoreAfterMinutes": 20160,
153+
102154
/**
103155
* If true, then Rush will add the `--strict-peer-dependencies` command-line parameter when
104156
* invoking PNPM. This causes `rush update` to fail if there are unsatisfied peer dependencies,
@@ -292,6 +344,19 @@
292344
* PNPM documentation: https://pnpm.io/package_json#pnpmpackageextensions
293345
*/
294346
"globalPackageExtensions": {
347+
// "fork-ts-checker-webpack-plugin": {
348+
// "dependencies": {
349+
// "@babel/core": "1"
350+
// },
351+
// "peerDependencies": {
352+
// "eslint": ">= 6"
353+
// },
354+
// "peerDependenciesMeta": {
355+
// "eslint": {
356+
// "optional": true
357+
// }
358+
// }
359+
// }
295360
"@emotion/core": {
296361
"peerDependencies": {
297362
"@types/react": ">=16"

0 commit comments

Comments
 (0)