Skip to content

Migrate package manager from npm to pnpm#19

Merged
mahata merged 1 commit intomainfrom
migrate-to-pnpm
Apr 7, 2026
Merged

Migrate package manager from npm to pnpm#19
mahata merged 1 commit intomainfrom
migrate-to-pnpm

Conversation

@mahata
Copy link
Copy Markdown
Owner

@mahata mahata commented Apr 7, 2026

Summary

  • Migrate from npm to pnpm 10.33.0 for faster installs, stricter dependency resolution, and more efficient disk usage
  • Add packageManager field to package.json (enables Corepack support)
  • Replace package-lock.json with pnpm-lock.yaml
  • Update CI (.github/workflows/ci.yml) and deploy (.github/workflows/deploy.yml) workflows to use pnpm/action-setup@v4 and pnpm commands
  • Update README.md command examples to use pnpm

Replace npm with pnpm 10.33.0 to benefit from faster installs, stricter
dependency resolution, and a more efficient node_modules structure.

- Add packageManager field to package.json
- Replace package-lock.json with pnpm-lock.yaml
- Update CI and deploy workflows with pnpm/action-setup and pnpm commands
- Update README.md command examples to use pnpm
Copilot AI review requested due to automatic review settings April 7, 2026 14:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the repository’s package manager from npm to pnpm, updating documentation and CI/CD workflows so installs/builds/tests run via pnpm with a committed pnpm-lock.yaml.

Changes:

  • Added pnpm lockfile (pnpm-lock.yaml) and configured the repo to use pnpm via packageManager in package.json.
  • Updated GitHub Actions CI and deploy workflows to install dependencies and run checks/tests/builds with pnpm.
  • Updated README command examples from npm to pnpm.
Show a summary per file
File Description
README.md Updates local development and post scaffolding commands to pnpm equivalents.
pnpm-lock.yaml Adds pnpm lockfile to lock dependency graph for pnpm installs.
package.json Pins pnpm toolchain via packageManager: pnpm@10.33.0.
.github/workflows/ci.yml Switches CI install/test/check/build steps from npm to pnpm.
.github/workflows/deploy.yml Switches deploy pipeline install/test/check/build steps from npm to pnpm.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 4/6 changed files
  • Comments generated: 2

Comment thread .github/workflows/ci.yml
uses: actions/checkout@v6

- name: Setup pnpm
uses: pnpm/action-setup@v4
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow sets up pnpm via pnpm/action-setup@v4 but doesn’t pin the pnpm version. Since package.json now pins pnpm via the packageManager field (pnpm@10.33.0) and pnpm-lock.yaml is lockfileVersion 9 (pnpm 10), CI should explicitly install that version (or enable Corepack and rely on packageManager) to avoid accidental breakage if the action’s default changes.

Suggested change
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v4
with:
version: 10.33.0

Copilot uses AI. Check for mistakes.
uses: actions/checkout@v6

- name: Setup pnpm
uses: pnpm/action-setup@v4
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow sets up pnpm via pnpm/action-setup@v4 but doesn’t pin the pnpm version. Since package.json now pins pnpm via the packageManager field (pnpm@10.33.0) and pnpm-lock.yaml is lockfileVersion 9 (pnpm 10), the deploy workflow should explicitly install that version (or enable Corepack and rely on packageManager) to keep builds deterministic.

Suggested change
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v4
with:
version: 10.33.0

Copilot uses AI. Check for mistakes.
@mahata mahata merged commit f803a11 into main Apr 7, 2026
5 checks passed
@mahata mahata deleted the migrate-to-pnpm branch April 7, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants