gabotechs/dep-tree

Support alias in code

Opened this issue · 2 comments

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

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

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.