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

Enable third-party tsconfig extension loading #47

Closed antoine-coulon closed 1 year ago

antoine-coulon commented 1 year ago

Currently when some TypeScript configuration file extends another tsconfig.json from a relative location, everything should be fine.

However some extended configuration comes from the node_modules ("extends": "@skott/config") skott won't be able to load that additional config as of now.

First solution that comes in mind: use createRequire to dynamically resolve the JSON module to the appropriate location.

antoine-coulon commented 1 year ago

Fixed in #65