gabotechs / dep-tree

Tool for helping developers keep their code bases clean and decoupled. It allows visualising a code base complexity using a 3d force-directed graph of files and the dependencies between them.
https://github.com/gabotechs/dep-tree
MIT License
1.39k stars 35 forks source link

Support alias in code #85

Open winnieBear opened 3 months ago

winnieBear commented 3 months ago

First of all, thank you very much for this amazing tool, but in the process of using , I found the ts code which uses alias or path alias, neither the generated dependency tree nor the entropy diagram, there are none of these alias dependent resource files, such as: // src/index.ts import { environment } from '@environment'; import '@/a/b/c';

// tsconfig.json "paths": { "@/": ["./src/"], "@environment": ["./src/environments/environments.ts" ].

the dependencies of src/index.ts does not have the environment or the @/a/b/c

gabotechs commented 3 months ago

Thanks for pointing that out! this should be easy to fix, stay tuned

gabotechs commented 3 days ago

I'm trying to replicate the issue but it seems to be working fine. Can you provide more info about your setup? I would be interested in knowing the full tsconfig.json, where your source files are located, and anything else you can provide that can help reproduce the issue.