Skip to content

Commit 46dbc90

Browse files
committed
Change to use exports
1 parent 1910681 commit 46dbc90

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
@@ -25,8 +25,7 @@
2525
],
2626
"sideEffects": false,
2727
"type": "module",
28-
"main": "index.js",
29-
"types": "index.d.ts",
28+
"exports": "./index.js",
3029
"files": [
3130
"lib/",
3231
"index.d.ts",

test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
3-
import {sectioning} from './index.js'
3+
import {sectioning} from 'hast-util-sectioning'
44

55
test('sectioning', async function (t) {
66
await t.test('should expose the public api', async function () {
7-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
7+
assert.deepEqual(Object.keys(await import('hast-util-sectioning')).sort(), [
88
'sectioning'
99
])
1010
})

0 commit comments

Comments
 (0)