example-subpath-exports-ts-compat icon indicating copy to clipboard operation
example-subpath-exports-ts-compat copied to clipboard

How to publish plain JS+JSDoc library for TypeScript consumers?

Open trusktr opened this issue 1 year ago • 1 comments

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.

trusktr avatar Jan 22 '24 04:01 trusktr

I got a setup working nicely after a bunch of trial and error. PR coming soon.

trusktr avatar Feb 05 '24 07:02 trusktr