Skip to content

chore: move to pnpm and modernize the toolchain - #32

Merged
devRMA merged 3 commits into
mainfrom
chore/toolchain-modernization
Nov 20, 2026
Merged

devRMA merged 3 commits into
mainfrom
chore/toolchain-modernization

Conversation

@devRMA

@devRMA devRMA commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

1 of 6 — stacked. Base: main.

npm's flat node_modules let @next/third-parties drift a whole major ahead of next without failing anything: next@15.5.22 alongside @next/third-parties@16.2.12, two packages that ship in lockstep upstream. pnpm's strict resolution turns that class of drift into an install error instead of a silent mismatch.

What moves

from to
package manager npm pnpm 12.4.1 (packageManager pinned, allowBuilds in pnpm-workspace.yaml)
Next.js 15.5.22 16.3.5
React 19.2.8 19.3.0
vitest + coverage-v8 4 5
jsdom 29 30
@testing-library/jest-dom 6 7
lucide-react 0.553 1.45
motion 12 13
tailwindcss 4.1.11 4.3.3
@biomejs/biome 2.4.12 2.5.13
@types/node ^20 ^24 (the runtime has been Node 24 all along)

Turbopack is the default build in Next 16, so --turbopack comes off the dev script. No middleware.ts, no AMP, no custom webpack config, no sync dynamic API usage — the migration surface was small and the codemod had nothing to rewrite.

TypeScript stays on 5.9.3. 7.0.2 is available but Next, Biome and Vitest have not all declared it, and a compiler jump is not a dependency bump.

Two real breaks, fixed

  • jest-dom 7 registers its matchers through @testing-library/jest-dom/vitest. The old entrypoint left 40+ toBeInTheDocument type errors while the tests passed at runtime.
  • lucide-react 1 renamed the generated icon class: lucide-trash2 → lucide-trash-2. An e2e selector depended on it; it now queries the button by its accessible name, which is what it should have done in the first place.

CI

pnpm/action-setup@v4, cache: "pnpm", pnpm install --frozen-lockfile, npx → pnpm exec, and the cache keys hash pnpm-lock.yaml.

Verified

biome check · tsc --noEmit · 476 unit tests · production build · full Playwright suite — all clean.

🤖 Generated with Claude Code

Lighthouse measures the app, not AdSense

The e2e job builds with ads enabled so the suite can assert their behaviour, and Lighthouse ran against that same build. AdSense's third-party cookie is worth five points of best-practices on its own, and a placeholder publisher id adds console errors and inspector issues on top — 0.75 in CI against 1.00 locally, none of it something our code can change. Lighthouse now runs against a build with the third-party scripts off, so the budget gates the application.

npm's flat node_modules let @next/third-parties drift a whole major ahead
of next without failing anything. pnpm's strict resolution makes that class
of drift an install error instead of a silent mismatch.

Next 15 -> 16 (Turbopack is the default build now, so --turbopack comes off
the dev script), React 19.3, vitest 5, jsdom 30, jest-dom 7, lucide-react 1,
motion 13, tailwind 4.3 and biome 2.5.

jest-dom 7 registers its matchers through the /vitest entrypoint, and
lucide-react 1 renames the generated icon class (lucide-trash2 ->
lucide-trash-2) — the e2e selector that depended on it now queries the
button by its accessible name, which is what it should have done anyway.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
workload Ready Ready Preview Nov 20, 2026 8:25am UTC

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The e2e job runs with ads enabled so the suite can assert their behaviour,
and Lighthouse ran against that same build. AdSense sets a third-party
cookie worth five points of best-practices on its own, and a placeholder
publisher id adds console errors and inspector issues on top — 0.75 in CI
against 1.00 locally, none of it something our code can change.

Lighthouse now runs against a build with the third-party scripts off, so
the budget gates the application.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: GPT-6.2-sol <noreply@openai.com>
@devRMA devRMA self-assigned this Nov 20, 2026
@devRMA
devRMA merged commit 00cc57e into main Nov 20, 2026
4 checks passed
@devRMA
devRMA deleted the chore/toolchain-modernization branch November 20, 2026 20:29
devRMA added a commit that referenced this pull request Nov 20, 2026
Co-Authored-By: GPT-6.2-sol <noreply@openai.com>

This branch was successfully deployed

1 active deployment
Preview — c5f19c96 Deployed Nov 20, 2026 by vercel[bot]
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