jaredpalmer / tsdx

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

[question] how do you generate declaration files? `tsc` or `rollup-typescript` plugin? #1120

Closed zzzgit closed 2 years ago

zzzgit commented 2 years ago

By what means do you generate *.d.ts files?

Is it tsc orrollup-typescript plugin?

agilgur5 commented 2 years ago

You're welcome to look at the source code.

TSDX uses rollup-plugin-typescript2 under-the-hood currently, which I've also contributed to. TSDX had at one point used @wessberg/rollup-plugin-ts, which provides (much) more features but had ran into many correctness bugs at the time (most, if not all, have been resolved now)