Skip to content

Conversation

@DannyDelott
Copy link
Contributor

@DannyDelott DannyDelott commented Nov 15, 2024

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/base and src/ui/base should not import from any other feature folders
  • ui/hyperdrive should not import from ui/portfolio (the other way around is fine)
  • nothing outside of src/ui should import from React or files within src/ui
  • This list goes on...

As 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.

@changeset-bot
Copy link

changeset-bot bot commented Nov 15, 2024

⚠️ No Changeset found

Latest commit: b0fb55b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Nov 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperdrive-mainnet-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 9:18pm
hyperdrive-sepolia-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 9:18pm
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
hyperdrive-js ⬜️ Ignored (Inspect) Visit Preview Nov 15, 2024 9:18pm
hyperdrive-mainnet-production ⬜️ Ignored (Inspect) Visit Preview Nov 15, 2024 9:18pm
hyperdrive-sepolia-production ⬜️ Ignored (Inspect) Visit Preview Nov 15, 2024 9:18pm
testnet-v1 ⬜️ Ignored (Inspect) Nov 15, 2024 9:18pm
testnet-v1.0.6 ⬜️ Ignored (Inspect) Visit Preview Nov 15, 2024 9:18pm
trading-competition ⬜️ Ignored (Inspect) Visit Preview Nov 15, 2024 9:18pm

@DannyDelott DannyDelott merged commit ab61a96 into main Nov 15, 2024
15 checks passed
@DannyDelott DannyDelott deleted the danny-add-dependency-cruiser branch November 15, 2024 21:21
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