Repository navigation
Conversation
|
π Deployed to the trpc-pr-6903 environment in trpc-sse-and-websockets
|
WalkthroughRemoved typecheckβs dependency on build in both CI and Turbo tasks, adjusted Turbo script filters from scope-based to path-based in package.json, and enabled strictNullChecks in tsconfig.build.json. No public APIs changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant GitHub as GitHub Actions
participant Build as Job: build
participant Typecheck as Job: typecheck
Dev->>GitHub: Open/Update Pull Request
GitHub->>Build: Start build
GitHub->>Typecheck: Start typecheck (no needs: build)
par Parallel CI
Build-->>GitHub: Build result
Typecheck-->>GitHub: Typecheck result
end
sequenceDiagram
autonumber
participant Turbo as turbo pipeline
participant Codegen as codegen-tests
participant Typecheck as typecheck
participant Build as build (deps)
Note over Turbo: Previous flow
Turbo->>Codegen: Run
Turbo->>Build: Run deps (^build)
Build-->>Turbo: Done
Codegen-->>Turbo: Done
Turbo->>Typecheck: Run after Codegen + Build
Note over Turbo: New flow
Turbo->>Codegen: Run
Codegen-->>Turbo: Done
Turbo->>Typecheck: Run (no ^build dependency)
Estimated code review effortπ― 2 (Simple) | β±οΈ ~10 minutes Poem
Tip π Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. β¨ Finishing Touchesπ§ͺ Generate unit tests
πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
@trpc/client
@trpc/next
@trpc/react-query
@trpc/server
@trpc/tanstack-react-query
@trpc/upgrade
commit: |
There was a problem hiding this comment.
Actionable comments posted: 0
π§Ή Nitpick comments (4)
tsconfig.build.json (1)
10-10:strictNullChecksis redundant whenstrictis enabled (harmless duplication).TypeScriptβs
strict: truealready turns onstrictNullChecks. Keeping both is fine for explicitness, but you can drop the extra flag to avoid drift.- "strictNullChecks": true,package.json (3)
13-13: Quote filter patterns to avoid shell globbing/brace expansion issues across shells.Unquoted globs can expand differently in bash/zsh, potentially breaking argument parsing. Quote the filter or use the
path:prefix.- "build": "turbo --filter={./packages/*} build", + "build": "turbo --filter='./packages/*' build", + // alternatively: + // "build": "turbo --filter='path:./packages/*' build",
16-16: Apply the same quoting fix todev.- "dev": "turbo --filter={./packages/*} dev", + "dev": "turbo --filter='./packages/*' dev", + // alternatively: + // "dev": "turbo --filter='path:./packages/*' dev",
20-20: Apply the same quoting fix totypecheck.- "typecheck": "turbo --filter={./packages/*} typecheck", + "typecheck": "turbo --filter='./packages/*' typecheck", + // alternatively: + // "typecheck": "turbo --filter='path:./packages/*' typecheck",
π Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
π‘ Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
π Files selected for processing (4)
.github/workflows/main.yml(0 hunks)package.json(1 hunks)tsconfig.build.json(1 hunks)turbo.json(1 hunks)
π€ Files with no reviewable changes (1)
- .github/workflows/main.yml
π§° Additional context used
π§ Learnings (1)
π Learning: 2025-06-09T14:01:20.033Z
Learnt from: juliusmarminge
PR: trpc/trpc#6789
File: packages/tanstack-react-query/tsdown.config.ts:1-24
Timestamp: 2025-06-09T14:01:20.033Z
Learning: In the tRPC monorepo, packages/tests and packages/upgrade don't need main/module/types fields in their package.json because tests is not distributed and upgrade just exposes a binary.
Applied to files:
package.json
β° Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
- GitHub Check: E2E-tests (nuxt)
- GitHub Check: E2E-tests (vercel-edge-runtime)
- GitHub Check: E2E-tests (standalone-server)
- GitHub Check: E2E-tests (soa)
- GitHub Check: E2E-tests (next-prisma-todomvc)
- GitHub Check: E2E-tests (next-minimal-starter)
- GitHub Check: E2E-tests (express-server)
- GitHub Check: E2E-tests (.experimental/next-app-dir)
- GitHub Check: E2E-tests (cloudflare-workers)
- GitHub Check: E2E-tests (fastify-server)
- GitHub Check: E2E-tests (.test/internal-types-export)
- GitHub Check: e2e-legacy-node (next-prisma-todomvc, 20.x)
- GitHub Check: Release using pkg.pr.new
- GitHub Check: e2e-legacy-node (next-prisma-websockets-starter, 18.x)
- GitHub Check: e2e-legacy-node (next-prisma-websockets-starter, 20.x)
- GitHub Check: e2e-legacy-node (next-prisma-starter, 18.x)
- GitHub Check: e2e-legacy-node (next-prisma-todomvc, 18.x)
- GitHub Check: e2e-legacy-node (next-prisma-starter, 20.x)
- GitHub Check: E2E-tests (Deno) (deno-deploy)
- GitHub Check: test
π Additional comments (2)
turbo.json (1)
55-57: Decoupling typecheck from build: looks good; confirm no upstream codegen artifacts are needed.Removing
^buildshould speed up CI via parallelism. Just ensure no packages rely on generated artifacts from dependency packages during typecheck; if they do, considerdependsOn: ["codegen-tests", "^codegen-tests"].package.json (1)
14-14: LGTM on quoting for monotest filter.Consistent quoting prevents shell expansion issues.
|
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. |
parallise typecheck and build
Summary by CodeRabbit