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

fix(@turbo/repository): no longer require packageManager to detect npm #10314

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

Merged
merged 2 commits into from
Apr 9, 2025

Conversation

chris-olszewski
Copy link
Member

@chris-olszewski chris-olszewski commented Apr 8, 2025

Description

Previously we had detected package manager, but wouldn't inform the package graph builder of our findings. This would later cause an error since the package graph builder wasn't configured to support detecting the package manager.

We now pass the initially discovered package manager in so we don't need to detect it.

This will still fail in cases of pnpm and yarn if those binaries are not installed since we cannot determine which version of the package manager the user wants to use.

Testing Instructions

Added new npm monorepo test fixture that is missing packageManager and a test that uses affectedPackages against it.

Copy link

vercel bot commented Apr 8, 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 Apr 8, 2025 8:09pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 8:09pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 8:09pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 8:09pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 8:09pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 8:09pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 8:09pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 8:09pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 8:09pm
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 8:09pm

Copy link
Member

@tknickman tknickman left a comment

Choose a reason for hiding this comment

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

Thanks!

@chris-olszewski chris-olszewski merged commit 3d50c16 into main Apr 9, 2025
44 checks passed
@chris-olszewski chris-olszewski deleted the olszewski/fix_turbo_repository_requires_pm branch April 9, 2025 12:25
chris-olszewski added a commit that referenced this pull request Apr 14, 2025
### Description

Bump version so I can release #10314 

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants