-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(boundaries): ignore nested workspaces #9840
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
crates/turborepo-globwalk/src/lib.rs
Outdated
"/repos/some-app/tests/mocks/spanish-inquisition/package.json", | ||
], | ||
"/repos/some-app/", | ||
&["**/package.json"], |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
525f3c2
to
847fbed
Compare
847fbed
to
b7c4382
Compare
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 toboundaries
fixture