We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
exports
1 parent e88a13d commit b3ff2c2Copy full SHA for b3ff2c2
package.json
@@ -24,8 +24,7 @@
24
],
25
"sideEffects": false,
26
"type": "module",
27
- "main": "index.js",
28
- "types": "index.d.ts",
+ "exports": "./index.js",
29
"files": [
30
"lib/",
31
"index.d.ts",
test.js
@@ -1,10 +1,10 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
-import {labelable} from './index.js'
+import {labelable} from 'hast-util-labelable'
4
5
test('labelable', 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-labelable')).sort(), [
8
'labelable'
9
])
10
})
0 commit comments