Skip to content

Commit

Permalink
Change to use exports
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 17, 2023
1 parent b3bc63a commit 1b6e686
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion test/children.js
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
2 changes: 1 addition & 1 deletion test/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion test/node.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/root.js
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit 1b6e686

Please sign in to comment.