hosseinmd / prettier-plugin-jsdoc

A Prettier plugin to format JSDoc comments.
MIT License
232 stars 28 forks source link

fix: provide correct types path in conditional exports #222

Closed auvred closed 10 months ago

auvred commented 10 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