antoine-coulon / skott

All-in-one devtool to automatically analyze, search and visualize project modules and dependencies from JavaScript, TypeScript (JSX/TSX) and Node.js (ES6, CommonJS)
MIT License
669 stars 25 forks source link

fix: typescript aliases path resolution #28

Closed abeluzhenko closed 1 year ago

abeluzhenko commented 1 year ago

Typescript path resolution was fixed for the paths which contain nested directories, e.g: import {foo} from "shared/utils/foo"

TS config alias: "shared/*": ["core/shared/*"]

path.dirname returns shared/utils for the example import part, hence it wasn't properly resolved and was marked as "third-party" module.