What problem does it solve?
pnpm streamlines dependency management for multi-package repositories by using a content-addressable store and workspace-aware resolution, enabling fast, reliable installs and consistent dependencies.
Core Features & Use Cases
- Monorepo workspaces: manage many packages with a single lockfile and coherent dependencies.
- Catalogs and overrides: centralize and enforce dependency versions across packages.
- Patches and pins: apply fixes to transitive dependencies and pin versions across the workspace.
- Efficient storage: disk-space savings via a global store and hard links.
- Use Case: coordinate internal packages and external dependencies in a large JS/TS monorepo.
Quick Start
Initialize a workspaces project by creating a pnpm-workspace.yaml at the repo root, then run pnpm install to bootstrap dependencies. In your package.json, reference internal packages with workspace protocol, e.g., "dependencies": {"@myorg/utils": "workspace:*"}.