diff --git a/package.json b/package.json index b5c76d7..65d142b 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,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 b637816..7997290 100644 --- a/test.js +++ b/test.js @@ -5,16 +5,16 @@ import assert from 'node:assert/strict' import test from 'node:test' import {remark} from 'remark' +import remarkTextr from 'remark-textr' // @ts-expect-error: untyped. import typographicQuotes_ from 'typographic-quotes' -import remarkTextr from './index.js' /** @type {TextrPlugin} */ const typographicQuotes = typographicQuotes_ test('remarkTextr', 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-textr')).sort(), [ 'default' ]) })