example-subpath-exports-ts-compat
example-subpath-exports-ts-compat copied to clipboard
How to publish plain JS+JSDoc library for TypeScript consumers?
Once this question gets answered,
https://stackoverflow.com/questions/77856692/how-to-publish-plain-jsjsdoc-library-for-typescript-consumers
it will be nice to put an example here.
There is also not enough information to figure how to achieve it in these two TS doc pages:
- https://www.typescriptlang.org/docs/handbook/modules/reference.html
- https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
It will be nice to update those too.
I got a setup working nicely after a bunch of trial and error. PR coming soon.