Skip to content

chore: migrate from pnpm to npm#47

Merged
wizzomafizzo merged 2 commits into
mainfrom
worktree-chore+npm-migration
Apr 5, 2026
Merged

chore: migrate from pnpm to npm#47
wizzomafizzo merged 2 commits into
mainfrom
worktree-chore+npm-migration

Conversation

@wizzomafizzo

Copy link
Copy Markdown
Member

Summary

  • Switches from pnpm to npm to resolve a known Dependabot bug where pnpm projects with GitHub Packages registries route all package lookups through the private registry, causing @types/* resolution failures (dependabot/dependabot-core#8242)
  • With npm, Dependabot correctly uses locked_registry from the lockfile for per-package routing
  • Pins vite to ~7.2.4 (7.3.x brings esbuild 0.27 which breaks @vitejs/plugin-legacy)
  • Pins vitest to ~4.0 to avoid a 4.1.x regression where the module evaluator appends &v=<hash> to file paths

What changed

  • pnpm-lock.yamlpackage-lock.json
  • .npmrc removed (CI, Dependabot, and Capawesome Cloud handle GitHub Packages auth separately)
  • CI workflows: pnpm/action-setup removed, pnpm installnpm ci (auth step kept)
  • Dependabot: registries config retained for GitHub Packages
  • Capawesome Cloud: injects ~/.npmrc auth in dependencyInstallCommand
  • Husky: pnpm lint-stagednpx lint-staged
  • Vite: simplified manualChunks (removed .pnpm/ path handling)
  • Native projects regenerated via cap sync for flat node_modules/
  • All docs updated

Supersedes #45 and #46.

Switch package manager to resolve a known Dependabot bug where pnpm
projects with GitHub Packages registries route all package lookups
through the private registry, causing @types/* resolution failures
(dependabot/dependabot-core#8242). With npm, Dependabot correctly
uses locked_registry from the lockfile for per-package routing.

Changes:
- Replace pnpm-lock.yaml with package-lock.json
- Remove .npmrc (CI workflows, Dependabot and Capawesome Cloud
  handle GitHub Packages auth separately)
- Update CI workflows to use npm (keep GitHub Packages auth step)
- Configure Dependabot registries for GitHub Packages
- Update husky, capawesome cloud config, vite chunk splitting
- Pin vite to ~7.2.4 (7.3.x pulls esbuild 0.27 which breaks
  @vitejs/plugin-legacy)
- Pin vitest to ~4.0 (4.1.x has a regression appending &v= hash
  to module paths, vitest-dev/vitest#9887)
- Update all documentation
@codecov

codecov Bot commented Apr 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wizzomafizzo
wizzomafizzo merged commit d333501 into main Apr 5, 2026
2 checks passed
@wizzomafizzo
wizzomafizzo deleted the worktree-chore+npm-migration branch April 5, 2026 12:57
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