We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
exports
1 parent 1910681 commit 46dbc90Copy full SHA for 46dbc90
package.json
@@ -25,8 +25,7 @@
25
],
26
"sideEffects": false,
27
"type": "module",
28
- "main": "index.js",
29
- "types": "index.d.ts",
+ "exports": "./index.js",
30
"files": [
31
"lib/",
32
"index.d.ts",
test.js
@@ -1,10 +1,10 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
-import {sectioning} from './index.js'
+import {sectioning} from 'hast-util-sectioning'
4
5
test('sectioning', async function (t) {
6
await t.test('should expose the public api', async function () {
7
- assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
+ assert.deepEqual(Object.keys(await import('hast-util-sectioning')).sort(), [
8
'sectioning'
9
])
10
})
0 commit comments