Skip to content

Commit 72879f3

Browse files
committed
Change to use export map
1 parent 0e5b32b commit 72879f3

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,11 +1,11 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
3+
import {compact} from 'mdast-util-compact'
34
import {u} from 'unist-builder'
4-
import {compact} from './index.js'
55

66
test('compact', async function (t) {
77
await t.test('should expose the public api', async function () {
8-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
8+
assert.deepEqual(Object.keys(await import('mdast-util-compact')).sort(), [
99
'compact'
1010
])
1111
})

0 commit comments

Comments
 (0)