build: convert repo from npm to pnpm#232
Conversation
- import package-lock.json to pnpm-lock.yaml (resolved versions preserved) and remove package-lock.json - add packageManager: pnpm@11.15.1 and pnpm-workspace.yaml (allowBuilds: esbuild for its postinstall) - convert npm-isms in package.json scripts to pnpm equivalents - CI: add pnpm/action-setup@v6, cache pnpm, pnpm install --frozen-lockfile, pnpm run; bump codecov-action to v7 - husky pre-commit: npx lint-staged -> pnpm exec lint-staged - ignore files: prettierignore pnpm-lock.yaml; gitignore package-lock.json and yarn.lock
|
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 23 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #232 +/- ##
=======================================
Coverage 99.95% 99.95%
=======================================
Files 34 34
Lines 4270 4270
Branches 793 793
=======================================
Hits 4268 4268
Misses 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Converts the repo from npm to pnpm 11.
pnpm import(resolved versions preserved);package-lock.jsonremoved.packageManager: pnpm@11.15.1pinned;pnpm-workspace.yamladded withallowBuilds: { esbuild: true }so esbuild's postinstall runs (pnpm 11 blocks build scripts by default).npm run->pnpm run,npm i --package-lock-only->pnpm install --lockfile-onlyin the changesetsversionscript).pnpm/action-setup@v6added before setup-node,cache: pnpm,pnpm install --frozen-lockfile; codecov-action bumped v5 -> v7.npx --no-install lint-staged->pnpm exec lint-staged.Release flow: changesets auto-detects pnpm for publish;
version/releasescripts updated accordingly.Verification: clean
pnpm install --frozen-lockfile,pnpm run build,pnpm run lint, andpnpm testall pass locally.