Package Managers (pnpm and Bun)
Choose package management defaults that support workspace scale and CI efficiency.
Recommended approach
- Use
pnpmas default package manager for workspace support and deterministic installs. - Use Bun package manager selectively for experiments where workflow compatibility is proven.
Alternatives and when to choose them
- npm for very small single-package repos.
- yarn when organization standards already depend on it.
Implementation checklist
- Commit lockfiles and enforce immutable CI installs.
- Use filtered installs/commands for workspace packages.
- Keep package manager version pinned.
Common pitfalls
- Mixed package managers in one repo.
- Running installs from wrong workspace path.