jaredpalmer / tsdx

Zero-config CLI for TypeScript package development
https://tsdx.io
MIT License
11.26k stars 508 forks source link

How to use ttypescript instead of typescript for TS paths aliases? #819

Closed mdeljavan closed 4 years ago

mdeljavan commented 4 years ago

I am using alias paths in my library and after building it, these paths in declaration files do not resolve. So i want to use ttypescript instead typescript in rollup config to solve this issue. But i don't find a way to replace typescript with ttypescript in tsdx.config.js file. How can do it?

agilgur5 commented 4 years ago

Please don't remove the issue template, it is there for a reason. Please do search the issues, as there are several regarding TS Paths Aliases with #91 being the central issue.

To answer the question though, TSDX uses rollup-plugin-typescript2 under-the-hood and it has typescript and transformers options you can pass to it. It is non-trivial to override its options however.