Outputs dependencies in a Lerna monorepo using Graphviz.
npm install lerna-dependency-graphOutputs dependencies in a Lerna monorepo using Graphviz.
!pug
_Graph of Pug (template engine)._
Install Graphviz and add the bin directory in your PATH.
Then add this package to your project:
npm i -D lerna-dependency-graph
Add a script entry in your package.json:
``json`
"scripts": {
"graph": "lerna-dependency-graph"
},
Execute:
npm run graph [-- options]
You could also give it a try without installing it:
npx lerna-dependency-graph [options]
The most important ones are:
- -f / --outputFormat -o
Outputs the given format.
If not given, outputs plain DOT.
List of available output formats
- / --outputPath
File to write into.
If not given, outputs on stdout.
See all options with -h`.