Skip to content
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

feat(boundaries): ignore nested workspaces #9840

Merged
merged 5 commits into from
Jan 31, 2025

Conversation

NicholasLYang
Copy link
Contributor

Description

Nested workspaces break a lot of our boundaries checks. This PR adds a setting to glob walking to ignore nested workspaces, and uses it for boundaries.

Testing Instructions

Added a test to turborepo-globwalk for the underlying setting. And added a nested package to boundaries fixture

@NicholasLYang NicholasLYang requested a review from a team as a code owner January 29, 2025 15:55
Copy link

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

"/repos/some-app/tests/mocks/spanish-inquisition/package.json",
],
"/repos/some-app/",
&["**/package.json"],
Copy link
Member

Choose a reason for hiding this comment

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

Can you change the test case to better match how this setting gets used in boundaries e.g. a glob of **/*.js and making sure it doesn't pick up js files in /repos/some-app/node_modules/, but still picks up JS files in /repos/some-app/apps/web/src/index.js

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed, although to be clear, we wouldn't pick up /repos/some-app/apps/web/src/index.js because apps/web is a package and we don't recurse into packages with this setting

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.

2 participants