What problem does it solve?
Keeps fleet rolldown bundles lean by reporting lockfile transitives that can be deduped, validating that external/ re-export shims remain delegated to shared packs, and ensuring that only lockfile mutations occur via pnpm dedupe while reporting any changes that would affect published bundles. Conservative and no-prompt: the only mutation is a lockfile-only pnpm dedupe; anything that would change the published bundle is reported for a human. Use for periodic dependency hygiene on bundle repos, or before a release.
Core Features & Use Cases
- Detects and reports dedupable lockfile transitives to reduce bundle size and avoid version drift.
- Validates that Socket-published prefixes are routed through catalog overrides and flags overrides that may drift.
- Flags fat re-export shims in external/ that regress to self-contained bundles, ensuring lean shared packs.
- Dry-run by default; with --fix, executes
pnpm dedupe (lockfile-only) and recommends a follow-up bundle rebuild.
Quick Start
Run the dry-run to identify dedupe opportunities across fleet repos, and use --fix to apply a lockfile-only dedupe.