diff --git a/package.json b/package.json index d9215db..c1d94f8 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,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 553441b..98f8bf4 100644 --- a/test.js +++ b/test.js @@ -1,11 +1,11 @@ import assert from 'node:assert/strict' import test from 'node:test' import {retext} from 'retext' -import retextIntensify from './index.js' +import retextIntensify from 'retext-intensify' test('retext-intensify', 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('retext-intensify')).sort(), [ 'default' ]) })