Repository navigation
chore: don't publicly hoist stub @types/parse-path - #7673
Conversation
Co-authored-by: Cursor <[email protected]>
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review info
π Walkthrough
Merge Risk: βͺ Minimal Β· up to
|
|
π Deployed to the trpc-pr-7673 environment in trpc-sse-and-websockets
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
π’ Approval recommended
The narrowly scoped exclusion addresses the reported typecheck failure without changing dependency resolution.
No open issues π
What changed in this PR
Prevents TypeScriptβs implicit type discovery from including the stub package introduced through Lerna Lite dependencies.
Changes:
- Excludes
@types/parse-pathfrom public hoisting while preserving other hoisting rules and leaving the lockfile unchanged.
| File | Description |
|---|---|
| pnpm-workspace.yaml | Adds the targeted public-hoisting exclusion. |
Review effort: Balanced
@trpc/client
@trpc/next
@trpc/openapi
@trpc/react-query
@trpc/server
@trpc/tanstack-react-query
@trpc/upgrade
commit: |
|
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. |
π― Changes
Since #7669 (lerna-lite), every example typecheck/build fails with:
The new dependency chain
@lerna-lite/*βgit-url-parse@16βgit-up@8β[email protected]pulls in@types/[email protected], which is a deprecated stub package with no.d.tsfiles. OurpublicHoistPattern: '@types/*'hoists it to the rootnode_modules/@types, and TypeScript auto-includes every folder there as an implicit type library, so it errors.This excludes
@types/parse-pathfrom public hoisting (same approach as the existing!@prisma/*exclusion). The lockfile is unchanged.The push to
mainfor #7669 skipped the e2e/typecheck jobs, so this first surfaced on #7672.Verified locally:
examples/express-minimal,bun,minimal-react,next-prisma-todomvcand.test/internal-types-exporttypecheck cleanly. Re-adding the hoisted stub brings back the exact TS2688 error.β Checklist
Made with Cursor
Summary by CodeRabbit