asarazan / martok

https://www.npmjs.com/package/martok
10 stars 0 forks source link

Doesn't support path aliases from tsconfig.json #82

Open asarazan opened 1 month ago

asarazan commented 1 month ago

This one sucks, but if you have a more modern project (like next.js) and use something like @/lib/foo in your imports, Martok won't know what to do with it.

I've tried some very preliminary attempts at parsing the project tsconfig.json to pull out compilerOptions, but we're using a different source root so it fails.

I'm convinced this is very doable, but I don't have the bandwidth to attempt it right now.