| name | pnpm |
| description | Use when managing Node.js dependencies with pnpm - install packages, configure monorepo workspaces, set up pnpm catalogs, resolve dependency conflicts with overrides, patch third-party packages, and configure CI pipelines for pnpm projects |
| license | MIT |
pnpm
Content-addressable store, strict deps, workspace protocol, catalogs.
When to Use
- Installing/managing npm packages
- Monorepo workspace setup with catalogs
- Overriding transitive dependencies
- Patching third-party packages
- CI/CD configuration for pnpm projects
- Supply chain security hardening
Quick Start
pnpm install
pnpm add <pkg>
pnpm add -D <pkg>
pnpm -r run build
pnpm --filter @myorg/app build
Workspace Setup
packages:
- 'packages/*'
- 'apps/*'
catalog:
react: ^18.2.0
typescript: ~5.3.0
{
"packageManager": "pnpm@10.28.2",
"dependencies": {
"@myorg/utils": "workspace:^",
"react": "catalog:"
}
}
Reference Files
Loading Files
Consider loading these reference files based on your task:
DO NOT load all files at once. Load only what's relevant to your current task.
Verify Setup
After configuring a workspace, verify it works:
pnpm install
pnpm ls --depth 0
pnpm -r run build
Cross-Skill References
- TypeScript libs → Use
ts-library skill for library patterns
- Build tooling → Use
tsdown or vite skills