hosseinmd / prettier-plugin-jsdoc

A Prettier plugin to format JSDoc comments.
MIT License
228 stars 29 forks source link

fix: provide correct types path in conditional exports #222

Closed auvred closed 8 months ago

auvred commented 8 months ago

I missed it somehow in https://github.com/hosseinmd/prettier-plugin-jsdoc/pull/195

When working in TypeScript project with moduleResolution set to node16, nodenext, or bundler, it's impossible to import type Options from the package, because its types are resolved to ./dist/types

https://github.com/hosseinmd/prettier-plugin-jsdoc/blob/a774106d68d4ebfce332059e46321fdecc490591/src/index.ts#L240