Description
Migrate the project from npm to pnpm as the package manager. pnpm is a faster, more efficient package manager that uses a content-addressable store and symlinks to avoid duplication.
Benefits
- Faster installation times due to efficient dependency resolution
- Reduced disk space usage with content-addressable storage
- Better monorepo support (if needed in the future)
- Stricter dependency management - enforces peer dependencies explicitly
- Improved security with better isolation between dependencies
- Better performance in CI/CD pipelines
Steps
- Install pnpm globally or add as dev dependency
- Create pnpm-lock.yaml by running
pnpm install from the repository
- Update CI/CD workflows (.github/workflows) to use
pnpm instead of npm
- Update documentation (README, CONTRIBUTING, etc.) with pnpm setup instructions
- Update package.json scripts if needed (npm ci → pnpm install, npm run → pnpm)
- Remove package-lock.json file
- Update .gitignore to include pnpm-lock.yaml instead of package-lock.json
- Test all scripts and workflows to ensure they work with pnpm
References
Description
Migrate the project from npm to pnpm as the package manager. pnpm is a faster, more efficient package manager that uses a content-addressable store and symlinks to avoid duplication.
Benefits
Steps
pnpm installfrom the repositorypnpminstead ofnpmReferences