Course lesson
Generate a Dependency Graph for Monorepos Using Turborepo
A dependency graph is exactly what it sounds like! A visual graph created by Turborepo to show you your dependencies and what dependencies the projects rely on. For our Monorepo, we'll run npx turbo run build --graph in the root of our project and that will...
- Duration
- 2 min
- Access
- Included
- Transcript
- Retained from source evidence
A dependency graph is exactly what it sounds like! A visual graph created by Turborepo to show you your dependencies and what dependencies the projects rely on. For our Monorepo, we'll run npx turbo run build --graph in the root of our project and that will build the dependency graph for all of our projects.
We can also do one with a graphic but that requires the Graphviz library. We can edit our command to have some arguments: npx turbo run build --graph=graph.pdf and it will create a graphic in a .pdf file.