eslint / markdown

Lint JavaScript code blocks in Markdown documents
MIT License
391 stars 60 forks source link

fix: correct `exports` field in package.json #279

Closed ocavue closed 2 weeks ago

ocavue commented 2 weeks ago

Closes https://github.com/eslint/markdown/issues/278

Based on the Node.js docs (link), I can't say for sure that the existing exports field is invalid, but it is certainly uncommon, which might be the issue behind #278. I updated the exports field to a more common format as described in the Node.js docs, and based on my testing, it does fix #278.

linux-foundation-easycla[bot] commented 2 weeks ago

CLA Signed

The committers listed above are authorized under a signed CLA.

nzakas commented 2 weeks ago

Thanks for the PR! Can you also add an entry for types? It seems like some tools will want that along with the default export.

ocavue commented 2 weeks ago

Added.