Rich-Harris / dts-buddy

WORK IN PROGRESS DO NOT USE
MIT License
318 stars 12 forks source link

Rollup Plugin DTS #7

Closed KonnorRogers closed 1 year ago

KonnorRogers commented 1 year ago

Would using Rollup be an option?

Unfortunately, I couldn't find a tool for generating .d.ts bundles, at least not one that worked. dts-buddy aims to fill the gap.

https://www.npmjs.com/package/rollup-plugin-dts

this is used by tsup internally for generating bundled .d.ts

not here to tell you what to do, but I've hit this brick wall before and solved it this way.

Rich-Harris commented 1 year ago

tried it, it failed on fairly simple input with a 'syntax not yet implemented' error. IIRC it also doesn't handle subpackages

KonnorRogers commented 1 year ago

@Rich-Harris 👍

Looking forward to more from this tool tbh. It's a huge pain point and I love authoring libraries in JSDOC.