rschristian / deptree

Visualize the dependency tree of a package or project
https://deptree.rschristian.dev
MIT License
17 stars 2 forks source link

Flat mode #3

Closed ArnaudBarre closed 3 months ago

ArnaudBarre commented 3 months ago

Thanks for making this!

An issue I have with this is that subtree are repeated and doesn't really represent the final impact on node_modules.

I was testing it with @eslint-react/eslint-plugin and most sub packages of the mono repo depend on @eslint-react/types which makes the tree difficult to parse.

rschristian commented 3 months ago

Sorry, working as intended -- it's not meant to represent installed packages in node_nodules but the actual tree. Graphically showing repeated subtrees is largely the point, as they do continue to exist even if your file system can flatten them out a bit.

rschristian commented 3 months ago

In the off chance you haven't seen npmgraph, it's what I'd recommend for a flattened view. It does it really well.