A CLI tool to generate a dependency graph of packages in a monorepo by graphviz or dagre.
yarn global add package-dependency-graph
package-dependency-graph --graphviz --png foo.png
package-dependency-graph --png foo.png
name | type | description |
---|---|---|
--root |
string? | tell the CLI the root directory of project |
--dot |
string? | save the dot file |
--png |
string? | save the png file |
--svg |
string? | save the svg file |
--exclude-node_modules |
boolean? | exclude packages from node_modules |
--check |
boolean? | check unnecessary dependencies(not recommended) |
--debug |
boolean? | show debug info |
-h,--help |
boolean? | Print this message. |
-v,--version |
boolean? | Print the version |
--graphviz |
boolean? | save graphviz styled png or svg file |