Repository navigation
chore: upgrade pnpm to 10.33.1 - #7350
Conversation
Co-authored-by: alexander <[email protected]>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: π Files selected for processing (9)
π WalkthroughWalkthroughMultiple package.json files updated from pnpm 9.12.2 to 10.33.1, GitHub Actions workflows upgraded to pnpm/action-setup v5, test command invocation corrected, OpenAPI CLI fixed to create output directories, and test runner import switched from Node.js to Vitest. Changes
Estimated code review effortπ― 2 (Simple) | β±οΈ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
π₯ Pre-merge checks | β 4 | β 1β Failed checks (1 warning)
β Passed checks (4 passed)
βοΈ Tip: You can configure your own custom pre-merge checks in the settings. β¨ Finishing Touchesπ Generate docstrings
π§ͺ Generate unit tests (beta)
Comment |
|
π Deployed to the trpc-pr-7350 environment in trpc-sse-and-websockets
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@trpc/client
@trpc/next
@trpc/openapi
@trpc/react-query
@trpc/server
@trpc/tanstack-react-query
@trpc/upgrade
commit: |
| with: | ||
| version: 10.33.1 |
Co-authored-by: alexander <[email protected]>
Co-authored-by: alexander <[email protected]>
There was a problem hiding this comment.
Pull request overview
Updates the repositoryβs pnpm version pins and GitHub workflow setup to standardize pnpm usage across the monorepo and included examples.
Changes:
- Bump pnpm pins (
engines.pnpm/packageManager) to10.33.1in the root and selected examples. - Update example workflows to use
pnpm/action-setup@v5(removing the old hardcoded pnpm version). - Small ancillary updates: tweak Vitest coverage excludes, align test imports to Vitest, and ensure OpenAPI CLI output directories are created before writing.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
package.json |
Updates root pnpm engine and packageManager pin to 10.33.1. |
examples/next-websockets-encoder/package.json |
Pins example packageManager to pnpm 10.33.1. |
examples/next-prisma-websockets-starter/package.json |
Pins example packageManager to pnpm 10.33.1. |
examples/next-prisma-websockets-starter/.github/workflows/main.yml |
Switches pnpm setup action to pnpm/action-setup@v5. |
examples/next-prisma-starter/.github/workflows/main.yml |
Switches pnpm setup action to pnpm/action-setup@v5 in both jobs. |
.github/workflows/main.yml |
Adjusts how coverage is requested when running tests in CI. |
vitest.config.ts |
Excludes **/coverage/** from coverage instrumentation. |
packages/upgrade/test/transforms.test.ts |
Uses Vitestβs describe instead of node:test. |
packages/openapi/src/cli.ts |
Creates the output directory before writing the generated OpenAPI document. |
π‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| const outputPath = path.resolve(args.output); | ||
| fs.mkdirSync(path.dirname(outputPath), { recursive: true }); | ||
| fs.writeFileSync(outputPath, JSON.stringify(doc, null, 2) + '\n', 'utf8'); | ||
| console.log(`OpenAPI document written to: ${outputPath}`); |
There was a problem hiding this comment.
The PR description focuses on upgrading pnpm pins and aligning workflows, but this change adds new CLI behavior (creating the output directory automatically). Please either update the PR description to mention this functional change or move it into a separate PR to keep the upgrade scoped.
| - uses: ./.github/setup | ||
|
|
||
| - run: MUTE_REACT_ACT_WARNINGS=1 pnpm test -- --coverage | ||
| - run: MUTE_REACT_ACT_WARNINGS=1 pnpm test --coverage |
There was a problem hiding this comment.
pnpm test --coverage likely wonβt forward --coverage to the test script (Vitest), since pnpm generally requires a -- separator for script args. This can result in pnpm treating --coverage as a pnpm CLI flag (and failing) or running tests without coverage, which would break the subsequent Codecov upload. Use pnpm test -- --coverage (or pnpm run test -- --coverage) so the flag is reliably passed to Vitest.
| - run: MUTE_REACT_ACT_WARNINGS=1 pnpm test --coverage | |
| - run: MUTE_REACT_ACT_WARNINGS=1 pnpm test -- --coverage |
|
This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you. |
Closes #
π― Changes
10.33.1β Checklist
Summary by CodeRabbit
Bug Fixes
Chores