Skip to content

Commit 03207a1

Browse files
committed
Change to use exports
1 parent 2258889 commit 03207a1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
],
2929
"sideEffects": false,
3030
"type": "module",
31-
"main": "index.js",
32-
"types": "index.d.ts",
31+
"exports": "./index.js",
3332
"files": [
3433
"lib/",
3534
"index.d.ts",

test/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import assert from 'node:assert/strict'
22
import fs from 'node:fs/promises'
33
import test from 'node:test'
44
import {fromHtml} from 'hast-util-from-html'
5+
import {toNlcst} from 'hast-util-to-nlcst'
56
import {isHidden} from 'is-hidden'
67
import {ParseDutch} from 'parse-dutch'
78
import {ParseEnglish} from 'parse-english'
89
import {ParseLatin} from 'parse-latin'
910
import {VFile} from 'vfile'
10-
import {toNlcst} from '../index.js'
1111

1212
test('toNlcst', async function (t) {
1313
await t.test('should expose the public api', async function () {
14-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
14+
assert.deepEqual(Object.keys(await import('hast-util-to-nlcst')).sort(), [
1515
'toNlcst'
1616
])
1717
})

0 commit comments

Comments
 (0)