Nestjs provides out of the box DI container very conveniently but as project gets more complex it is easy to lose the full picture of all dependencies and their order.
Question: Is there a way to get a list of all dependencies (modules, providers, controllers...) possibly in a way that can be put into a tree/graph? I'm sure Nestjs tracks this information internally and I'm wondering what would be the best way to access it.
(I found [nestjs-dependency-graph
] but it scans the modules manually for metadata, doesn't find all dependencies and tends to go into infinite loop)
It's not a complete solution yet, but there is the package I've been working on nestjs-spelunker. You can read through the readme and see if it does what you're looking for
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With