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

Conversation

@devin-ai-integration
Copy link
Contributor

Description

Fixes #8599

When workspace globs are defined with a leading ./ in package.json (e.g., "./packages/*"), Automatic Package Scoping doesn't work correctly. This PR fixes the issue by normalizing paths with leading ./ in the WorkspaceGlobs::new method, ensuring that workspace globs with leading ./ match package paths correctly.

Changes

Verification

  • Added unit test that verifies workspace globs with leading ./ are correctly normalized
  • Ran existing test suite to ensure nothing breaks

Link to Devin run: https://app.devin.ai/sessions/59eb1187a64149edac3bfc4bccef2bc3
Requested by: anthony.shew@vercel.com

Co-Authored-By: anthony.shew@vercel.com <anthonyshew@gmail.com>
@vercel
Copy link
Contributor

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

@devin-ai-integration devin-ai-integration bot requested a review from a team as a code owner April 30, 2025 05:19
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration devin-ai-integration bot changed the title Fix: Package scoping fails when workspace glob has leading ./ fix: package scoping fails when workspace glob has leading ./ Apr 30, 2025
Co-Authored-By: anthony.shew@vercel.com <anthonyshew@gmail.com>
@anthonyshew anthonyshew closed this May 3, 2025
@anthonyshew
Copy link
Contributor

Closing because it needs be restarted with a better prompt.

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.

Package scoping fails when workspace glob has leading ./

2 participants