alloc / vite-dts

Blazing fast plugin that generates .d.ts modules for libraries
MIT License
89 stars 15 forks source link

Allow for dts paths to be specified. #6

Closed drewloomer closed 2 years ago

drewloomer commented 2 years ago

I'm working on a project that bundles multiple libraries from the same package, but dts currently uses main and module exclusively for determining where to output files. This PR adds the ability to pass specific paths for output to be used with subpath exports.

drewloomer commented 2 years ago

@aleclarson let me know if there is another way you'd want to see this implemented.

drewloomer commented 2 years ago

Didn't do enough testing. Reworking PR.