We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
export
1 parent c284a2e commit b6f8551Copy full SHA for b6f8551
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 {generated} from './index.js'
+import {generated} from 'unist-util-generated'
4
5
test('generated', 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('unist-util-generated')).sort(), [
8
'generated'
9
])
10
})
0 commit comments