diff --git a/package.json b/package.json index bf67224..104e1f5 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/children.js b/test/children.js index 0fecc4a..3d22877 100644 --- a/test/children.js +++ b/test/children.js @@ -1,6 +1,6 @@ import nodeAssert from 'node:assert/strict' import test from 'node:test' -import {assert} from '../index.js' +import {assert} from 'nlcst-test' test('children', async function (t) { await t.test( diff --git a/test/core.js b/test/core.js index c433865..4a536fa 100644 --- a/test/core.js +++ b/test/core.js @@ -3,7 +3,7 @@ import test from 'node:test' test('core', async function (t) { await t.test('should expose the public api', async function () { - nodeAssert.deepEqual(Object.keys(await import('../index.js')).sort(), [ + nodeAssert.deepEqual(Object.keys(await import('nlcst-test')).sort(), [ '_void', 'assert', 'literal', diff --git a/test/node.js b/test/node.js index c1bba41..fe4a094 100644 --- a/test/node.js +++ b/test/node.js @@ -1,6 +1,6 @@ import nodeAssert from 'node:assert/strict' import test from 'node:test' -import {assert} from '../index.js' +import {assert} from 'nlcst-test' test('node', async function (t) { await t.test('should throw if not given a node (#1)', async function () { diff --git a/test/root.js b/test/root.js index df2bb81..f22f49f 100644 --- a/test/root.js +++ b/test/root.js @@ -1,6 +1,6 @@ import nodeAssert from 'node:assert/strict' import test from 'node:test' -import {assert} from '../index.js' +import {assert} from 'nlcst-test' test('assert(RootNode)', async function (t) { await t.test(