pnpm
Content-addressable store, strict deps, workspace protocol, catalogs.
When to Use
- Installing/managing npm packages
- Monorepo workspace setup
- Overriding transitive dependencies
- Patching third-party packages
- CI/CD configuration for pnpm projects
Quick Start
pnpm install # Install deps
pnpm add <pkg> # Add dep
pnpm add -D <pkg> # Dev dep
pnpm -r run build # Run in all packages
pnpm --filter @myorg/app build # Run in specific package
Workspace Setup
# pnpm-workspace.yaml
packages:
- 'packages/*'
- 'apps/*'
catalog:
react: ^18.2.0
typescript: ~5.3.0
// package.json
{
"dependencies": {
"@myorg/utils": "workspace:^",
"react": "catalog:"
}
}
Reference Files
| Task |
File |
| Commands, scripts, filtering |
cli.md |
| Workspaces, catalogs, config |
workspaces.md |
| Overrides, patches, hooks, store |
features.md |
| CI/CD, Docker, migration |
ci.md |
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.
Cross-Skill References
- TypeScript libs → Use
ts-library skill for library patterns
- Build tooling → Use
tsdown or vite skills
1---2name: pnpm-33description: Fast, disk space efficient package manager for Node.js with strict dependency resolution and monorepo support4license: MIT5---67# pnpm89Content-addressable store, strict deps, workspace protocol, catalogs.1011## When to Use1213- Installing/managing npm packages14- Monorepo workspace setup15- Overriding transitive dependencies16- Patching third-party packages17- CI/CD configuration for pnpm projects1819## Quick Start2021```bash22pnpm install # Install deps23pnpm add <pkg> # Add dep24pnpm add -D <pkg> # Dev dep25pnpm -r run build # Run in all packages26pnpm --filter @myorg/app build # Run in specific package27```2829## Workspace Setup3031```yaml32# pnpm-workspace.yaml33packages:34 - 'packages/*'35 - 'apps/*'3637catalog:38 react: ^18.2.039 typescript: ~5.3.040```4142```json43// package.json44{45 "dependencies": {46 "@myorg/utils": "workspace:^",47 "react": "catalog:"48 }49}50```5152## Reference Files5354| Task | File |55| -------------------------------- | ----------------------------------------- |56| Commands, scripts, filtering | [cli.md](references/cli.md) |57| Workspaces, catalogs, config | [workspaces.md](references/workspaces.md) |58| Overrides, patches, hooks, store | [features.md](references/features.md) |59| CI/CD, Docker, migration | [ci.md](references/ci.md) |6061## Loading Files6263**Consider loading these reference files based on your task:**6465- [ ] [references/cli.md](references/cli.md) - if using pnpm commands, scripts, or filtering66- [ ] [references/workspaces.md](references/workspaces.md) - if setting up monorepo, catalogs, or workspace config67- [ ] [references/features.md](references/features.md) - if using overrides, patches, hooks, or managing store68- [ ] [references/ci.md](references/ci.md) - if configuring CI/CD, Docker, or migrating from npm/yarn6970**DO NOT load all files at once.** Load only what's relevant to your current task.7172## Cross-Skill References7374- **TypeScript libs** → Use `ts-library` skill for library patterns75- **Build tooling** → Use `tsdown` or `vite` skills