acrazing / dpdm

Detect circular dependencies in your TypeScript projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Specify a directory and search for circular dependencies in it (dpdm)

gearonix opened this issue · comments

Describe the solution you'd like

It would also be nice to be able to specify a directory and search for circular dependencies in it.

Perhaps it would look something like this

dpdm --no-warning \
     --no-tree \
     --directory ./src

The root file index.ts is not always available

Maybe we can implement the functionality using node-glob or something like that.

It supports glob already. You can use it like this:

dpdm --no-warning \
     --no-tree \
     --directory './src/*.*'