We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
export
1 parent 0e5b32b commit 72879f3Copy full SHA for 72879f3
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,11 +1,11 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
+import {compact} from 'mdast-util-compact'
4
import {u} from 'unist-builder'
-import {compact} from './index.js'
5
6
test('compact', async function (t) {
7
await t.test('should expose the public api', async function () {
8
- assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
+ assert.deepEqual(Object.keys(await import('mdast-util-compact')).sort(), [
9
'compact'
10
])
11
})
0 commit comments