Skip to content

chore: don't publicly hoist stub @types/parse-path - #7673

Merged
KATT merged 1 commit into
mainfrom
fix/parse-path-types
Oct 17, 2026
Merged

KATT merged 1 commit into
mainfrom
fix/parse-path-types

Conversation

@KATT

@KATT KATT commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

🎯 Changes

Since #7669 (lerna-lite), every example typecheck/build fails with:

error TS2688: Cannot find type definition file for 'parse-path'.
  The file is in the program because:
    Entry point for implicit type library 'parse-path'

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.ts files. Our publicHoistPattern: '@types/*' hoists it to the root node_modules/@types, and TypeScript auto-includes every folder there as an implicit type library, so it errors.

This excludes @types/parse-path from public hoisting (same approach as the existing !@prisma/* exclusion). The lockfile is unchanged.

The push to main for #7669 skipped the e2e/typecheck jobs, so this first surfaced on #7672.

Verified locally: examples/express-minimal, bun, minimal-react, next-prisma-todomvc and .test/internal-types-export typecheck cleanly. Re-adding the hoisted stub brings back the exact TS2688 error.

βœ… Checklist

  • I have followed the steps listed in the Contributing guide.
  • If necessary, I have added documentation related to the changes made.
  • I have added or updated the tests related to the changes made.

Made with Cursor

Summary by CodeRabbit

  • Chores
    • Adjusted package hoisting for a type definition package.

@KATT
KATT requested a review from a team as a code owner October 17, 2026 15:39
Copilot AI balanced review requested due to automatic review settings October 17, 2026 15:39
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack β†’

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration
  • Configuration used: Repository: trpc/trpc/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fd1129b9-71b9-4c8e-8edb-7771b3dbd10e
πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between f15d2a1 and 54bc9dd.

πŸ“’ Files selected for processing: 1
  • pnpm-workspace.yaml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

πŸ“ Walkthrough

The workspace configuration adds an exclusion for @types/parse-path in publicHoistPattern.

Changes: Workspace hoist pattern

Layer / File(s) Summary
Add package hoist exclusion
pnpm-workspace.yaml
publicHoistPattern now excludes @types/parse-path from the @types/* pattern.

Priority: βž– Normal

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Suggested reviewers: nick-lucas

Merge Risk: βšͺ Minimal Β· up to 54bc9

This change targets the @types/parse-path hoist exception. No concrete user-facing regression or actionable merge blocker is established.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: excluding the stub @types/parse-path package from public hoisting.
Description check Passed The description explains the TypeScript failure, the dependency chain, the configuration change, and local verification. It includes the Changes and Checklist sections. The issue-closing reference is …
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the TypeScript failure, the dependency chain, the configuration change, and local verification. It includes the Changes and Checklist sections. The issue-closing reference is not completed, and the test checklist item is unchecked despite reported typecheck verification, but the description is otherwise sufficiently complete.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix Β· Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share

Comment @coderabbitai help to get the list of available commands.

@railway-app
railway-app Bot temporarily deployed to trpc-sse-and-websockets / trpc-pr-7673 October 17, 2026 15:39 Destroyed
@railway-app

railway-app Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

πŸš… Deployed to the trpc-pr-7673 environment in trpc-sse-and-websockets

Service Status Web Updated
next-prisma-websockets-starter βœ… Success (View Logs) Oct 17, 2026 at 3:47 pm UTC
next-sse-chat βœ… Success (View Logs) Web Oct 17, 2026 at 3:46 pm UTC

@vercel

vercel Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
next-prisma-starter Ready Ready Preview Oct 17, 2026 3:41pm UTC
og-image Ready Ready Preview Oct 17, 2026 3:41pm UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟒 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-path from 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

@pkg-pr-new

pkg-pr-new Bot commented Oct 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

npm i https://pkg.pr.new/@trpc/client@7673

@trpc/next

npm i https://pkg.pr.new/@trpc/next@7673

@trpc/openapi

npm i https://pkg.pr.new/@trpc/openapi@7673

@trpc/react-query

npm i https://pkg.pr.new/@trpc/react-query@7673

@trpc/server

npm i https://pkg.pr.new/@trpc/server@7673

@trpc/tanstack-react-query

npm i https://pkg.pr.new/@trpc/tanstack-react-query@7673

@trpc/upgrade

npm i https://pkg.pr.new/@trpc/upgrade@7673

commit: 54bc9dd

@KATT
KATT merged commit 0d1feaa into main Oct 17, 2026
54 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 18, 2026

This branch was successfully deployed

5 active deployments
Preview – www β€” 54bc9dde Deployed Oct 17, 2026 by vercel[bot]
Preview – trpc-next-app-dir β€” 54bc9dde Deployed Oct 17, 2026 by vercel[bot]
Preview – next-prisma-starter β€” 54bc9dde Deployed Oct 17, 2026 by vercel[bot]
Preview – examples-todomvc β€” 54bc9dde Deployed Oct 17, 2026 by vercel[bot]
Preview – og-image β€” 54bc9dde Deployed Oct 17, 2026 by vercel[bot]
trpc-sse-and-websockets / trpc-pr-7673 β€” 54bc9dde Deployed Oct 17, 2026 by railway-app[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants