diff --git a/package.json b/package.json index ecd4182..1a51f19 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,7 @@ ], "sideEffects": false, "type": "module", - "main": "index.js", - "types": "index.d.ts", + "exports": "./index.js", "files": [ "lib/", "index.d.ts", diff --git a/test/index.js b/test/index.js index efa165b..e0f3581 100644 --- a/test/index.js +++ b/test/index.js @@ -1,6 +1,6 @@ /** * @typedef {import('mdast').Root} Root - * @typedef {import('../index.js').Options} Options + * @typedef {import('remark-gfm').Options} Options */ import assert from 'node:assert/strict' @@ -9,12 +9,12 @@ import process from 'node:process' import test from 'node:test' import {isHidden} from 'is-hidden' import {remark} from 'remark' +import remarkGfm from 'remark-gfm' import stringWidth from 'string-width' -import remarkGfm from '../index.js' test('remarkGfm', async function (t) { await t.test('should expose the public api', async function () { - assert.deepEqual(Object.keys(await import('../index.js')).sort(), [ + assert.deepEqual(Object.keys(await import('remark-gfm')).sort(), [ 'default' ]) })