Skip to content

chore(repo): migrate from npm to pnpm workspace - #5

Merged
shettydev merged 2 commits into
mainfrom
chore/migrate-pnpm
Jun 29, 2026
Merged

shettydev merged 2 commits into
mainfrom
chore/migrate-pnpm

Conversation

@shettydev

Copy link
Copy Markdown
Owner

What

Replaces npm with a pnpm workspace covering the root dev-tooling and the frontend/ app. Stacked on top of #(chore/commit-tooling) since it rewrites files introduced there — review/merge that one first.

Changes

  • pnpm-workspace.yaml — declares frontend as a workspace package; one pnpm install at the root wires up everything.
  • packageManager: pnpm@10.22.0 in root package.json (Corepack-managed pin) + root proxy scripts (pnpm dev / build / start / lint).
  • Lockfiles — dropped both package-lock.json files (~10.7k lines) for a single pnpm-lock.yaml.
  • Husky hooks — npx → pnpm exec in pre-commit and commit-msg.
  • Docs — CONTRIBUTING.md + frontend/README.md updated for pnpm / Corepack.

Why pnpm

Best balance of speed, disk efficiency, and full Node compatibility for 2026; native workspace support fits the root + frontend/ monorepo cleanly (Bun's speed edge wasn't worth its ~95% Node-compat risk for this small tooling surface).

Verification

  • pnpm install → exit 0, single lockfile generated, husky prepare ran (hooks active).
  • pnpm exec commitlint: bad message → exit 1, good → exit 0.
  • pnpm exec lint-staged resolves; frontend deps resolve (next → v16.2.9).
  • Hooks confirmed live: pre-commit Prettier reformatted frontend/README.md; commit-msg accepted the multi-scope docs(repo,frontend) message.
  • CI unchanged — ci.yml only sets up Node for the Python JS-runner tests; it never installs JS deps.

🤖 Generated with Claude Code

shettydev and others added 2 commits June 29, 2026 22:25
Replace npm with a pnpm workspace covering the root tooling and frontend/.
Pin pnpm via packageManager, drop both package-lock.json files for a single
pnpm-lock.yaml, and run the husky hooks through pnpm exec.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@shettydev shettydev self-assigned this Jun 29, 2026
Base automatically changed from chore/commit-tooling to main June 29, 2026 16:58
@shettydev
shettydev merged commit 6a3e3bc into main Jun 29, 2026
2 checks passed
@shettydev
shettydev deleted the chore/migrate-pnpm branch June 29, 2026 16:58
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.

1 participant