Generate a Dependency Graph for Monorepos Using Turborepo

Share this video with your friends

Send Tweet

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.