What problem does it solve?
pnpm workspace can end up with duplicate dependencies across packages, causing broken type checking, bundler resolution issues, and multiple instances of singleton-like libraries. This skill helps identify and fix these duplicates in a pnpm-managed monorepo.
Core Features & Use Cases
- Detect duplicate packages across the workspace by inspecting pnpm-lock.yaml and package graphs.
- Guide deduplication by identifying the older version cause and applying targeted updates to align versions across the tree.
- Use cases include monorepos with shared dependencies (e.g., zod or react) that appear in multiple subtrees but with conflicting peer or transitive versions.
Quick Start
Run the deduplication workflow by identifying the older version with pnpm -r why packagename@version and then apply updates with pnpm update -r --latest on the affected packages.