这是indexloc提供的服务,不要输入任何密码
Skip to content

fix(pnpm): respect deep for linkWorkspacePackages #10558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

chris-olszewski
Copy link
Member

Description

Closes #10528

With #10391 we started reading linkWorkspacePackages from pnpm-workspace.yaml. This caused issues with single package vs monorepo detection as deep is a valid value here and we only expected a boolean. This would cause a detection of a single package repo and we would swallow the error of pnpm-workspace.yaml not parsing due to the usage of deep.

This PR adds support for deep on the parsing end

Follow up PR is to have noisy warnings if we find a pnpm-workspace.yaml, but do not understand it.

Testing Instructions

Added a red/green test. Verified with https://github.com/ocavue/starter-monorepo

@chris-olszewski chris-olszewski requested a review from a team as a code owner June 9, 2025 21:31
@chris-olszewski chris-olszewski requested a review from tknickman June 9, 2025 21:31
Copy link

vercel bot commented Jun 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 0:01am
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 0:01am
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 0:01am
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 0:01am
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 0:01am
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 0:01am
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 0:01am
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 0:01am
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 0:01am
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 0:01am

Copy link
Contributor

@anthonyshew anthonyshew left a comment

Choose a reason for hiding this comment

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

LGTM TY

@chris-olszewski chris-olszewski merged commit 30d4cfc into main Jun 10, 2025
40 checks passed
@chris-olszewski chris-olszewski deleted the chrisolszewski/turbo-4739-recursive_turbo_invocations-after-updating-turbo-from-252-to branch June 10, 2025 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

recursive_turbo_invocations after updating turbo from 2.5.2 to 2.5.4
3 participants