Skip to content

Commit af0a377

Browse files
slorberclaude
andauthored
chore: prune stale pnpm exclusions automatically (#13130)
* chore: prune stale pnpm exclusions automatically Remove the minimumReleaseAgeExclude entries now older than the 7-day gate, and the trustPolicyExclude entries the lockfile no longer resolves. Enable minimumReleaseAgeExcludePrune and trustPolicyExcludePrune so that pnpm install removes the entries the lockfile no longer resolves. Upgrade pnpm to 12.22.0: trustPolicyExcludePrune needs pnpm 12.4+. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: let Lint AutoFix push the pruned pnpm exclusions The setup install prunes the stale exclusions of pnpm-workspace.yaml, but then every pnpm command fails verifyDepsBeforeRun until the next install: install again before the autofix steps. Remove the @crowdin/* release-age exclusion, no longer needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: link the pnpm issue of the Lint AutoFix workaround Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: remove the comments of the exclusion prune settings Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: mark the Lint AutoFix pnpm workaround as a TODO Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 12f98e6 commit af0a377

2 files changed

Lines changed: 8 additions & 17 deletions

File tree

‎.github/workflows/lint-autofix.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ jobs:
4444
# Security: prevents cache poisoning, as the fixes of this job are pushed to the repository
4545
cache: false
4646

47+
# TODO remove once https://github.com/pnpm/pnpm/issues/18498 is fixed
48+
# The setup install already pruned the stale pnpm-workspace.yaml exclusions
49+
# Install again, or the next pnpm commands fail verifyDepsBeforeRun
50+
- name: AutoFix pnpm exclusions
51+
run: pnpm install --frozen-lockfile --ignore-scripts
52+
4753
- name: AutoFix Duplicated deps
4854
run: pnpm lint:deps:fix
4955

‎pnpm-workspace.yaml‎

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -246,33 +246,18 @@ overrides:
246246
minimumReleaseAge: 10080 # 7 days in minutes
247247
minimumReleaseAgeStrict: true
248248
minimumReleaseAgeIgnoreMissingTime: false
249+
minimumReleaseAgeExcludePrune: true
249250
minimumReleaseAgeExclude:
250-
- image-size@2.0.4
251-
- webpack@5.111.0
252-
- enhanced-resolve@5.25.0
253-
- schema-utils@4.5.0
254-
- react@19.3.0
255-
- react-dom@19.3.0
256-
- scheduler@0.28.0
257-
- '@types/react@19.3.0'
258-
- '@types/react-dom@19.3.0'
259-
- tar@7.5.16
260-
- '@rsdoctor/core@2.0.0'
261-
- '@rsdoctor/client@2.0.0'
262-
- '@rsdoctor/shared@2.0.0'
263-
- serve-handler@6.1.8
264251
- pnpm
265252
- '@pnpm/exe.*'
266253
- typescript
267254
- '@rspack/*'
268-
- '@crowdin/*'
269255

270256
trustPolicy: no-downgrade
271257
trustPolicyIgnoreAfter: 525600 # ignore packages published 1+ year ago
258+
trustPolicyExcludePrune: true
272259
trustPolicyExclude:
273-
- 'tinyexec@1.2.2'
274260
- '@trickfilm400/rollup-plugin-off-main-thread@3.0.0-pre1'
275-
- 'browserslist-load-config@1.0.2'
276261
- '@vercel/detect-agent@1.2.5' # See https://github.com/vercel/vercel/issues/17408
277262

278263
trustLockfile: false

0 commit comments

Comments
 (0)