diff --git a/package.json b/package.json index 01fa7b7..78bc02d 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,7 @@ ], "sideEffects": false, "type": "module", - "main": "index.js", - "types": "index.d.ts", + "exports": "./index.js", "files": [ "lib/", "index.d.ts", diff --git a/test.js b/test.js index defa65e..3f88f94 100644 --- a/test.js +++ b/test.js @@ -1,10 +1,10 @@ import assert from 'node:assert/strict' import test from 'node:test' -import {heading} from './index.js' +import {heading} from 'hast-util-heading' test('heading', 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('hast-util-heading')).sort(), [ 'heading' ]) })