Added pnpmDedupe to Renovate postUpdateOptions#27906
Conversation
- The shared `tryghost/renovate-config` preset passes `yarnDedupeHighest`, which is a silent no-op for pnpm — yarn-deduplicate can't parse `pnpm-lock.yaml`. Renovate has therefore been running zero lockfile dedupe since the repo moved off yarn. - Adding `"postUpdateOptions": ["pnpmDedupe"]` makes Renovate run `pnpm dedupe` after every lockfile update. Renovate's array merge concats with the preset's value, so `yarnDedupeHighest` keeps being a harmless no-op until it can be swapped upstream in tryghost/renovate-config. - Expect a slightly noisier lockfile diff on the first Renovate PR after this merges, as accumulated duplicate transitive versions collapse.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
tryghost/renovate-configpreset passesyarnDedupeHighest, whichyarn-deduplicatecan't apply topnpm-lock.yaml— so it's a silent no-op."postUpdateOptions": ["pnpmDedupe"]here makes Renovate runpnpm dedupeafter every lockfile update. Renovate's array merge concats with the preset's value, soyarnDedupeHighestkeeps being a harmless no-op until it's swapped upstream intryghost/renovate-config.pnpm-lock.yamlover time, shrink the on-disk store, and reduce transitive-vuln exposure from stale versions.Test plan
pnpm-lock.yamlafter merge runspnpm dedupeas part of the update. Lockfile diff on that PR will likely be noisier than usual as accumulated duplicates collapse — that's expected, one-time.package.jsonfiles.pnpm dedupeonly consolidates within existing semver constraints.Follow-up
tryghost/renovate-config:quiet.json5so other repos extending the preset benefit and the local override here can be removed.