-
Notifications
You must be signed in to change notification settings - Fork 4
Add dependency-cruiser, fix depcruise violations #1657
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
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
623e2ac to
8afbb4d
Compare
78ecd9c to
7c3c289
Compare
Been wanting to use this in the monorepo for a while, but dependency-cruiser wasn't playing nicely with Turborepo. It appears that's all been worked out by the library author, so we can start using this tool!
Out the gate, this caught several instances of depending on packages that were not included in the
package.json, depending on devDependencies where we shouldn't be, as well as several orphaned files.We'll be able to add other rules to lock down our own dependency rules too, eg:
src/baseandsrc/ui/baseshould not import from any other feature foldersui/hyperdriveshould not import fromui/portfolio(the other way around is fine)src/uishould import from React or files withinsrc/uiAs our codebase continues to grow, dependency-cruiser will play a vital role in pinning down the way we manage our dependencies and keeping our feature folders clean.