Skip to content

Migrate to using pnpm instead of npm #434

@phoenix-server

Description

@phoenix-server

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

  1. Install pnpm globally or add as dev dependency
  2. Create pnpm-lock.yaml by running pnpm install from the repository
  3. Update CI/CD workflows (.github/workflows) to use pnpm instead of npm
  4. Update documentation (README, CONTRIBUTING, etc.) with pnpm setup instructions
  5. Update package.json scripts if needed (npm ci → pnpm install, npm run → pnpm)
  6. Remove package-lock.json file
  7. Update .gitignore to include pnpm-lock.yaml instead of package-lock.json
  8. Test all scripts and workflows to ensure they work with pnpm

References

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions