Skip to content

Commit b2d67dd

Browse files
committed
Change to use export map
1 parent 47738fe commit b2d67dd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
],
3232
"sideEffects": false,
3333
"type": "module",
34-
"main": "index.js",
35-
"types": "index.d.ts",
34+
"exports": "./index.js",
3635
"files": [
3736
"lib/",
3837
"index.d.ts",

test.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
import assert from 'node:assert/strict'
77
import test from 'node:test'
88
import {u} from 'unist-builder'
9-
import {remove} from './index.js'
9+
import {remove} from 'unist-util-remove'
1010

1111
test('remove', async function (t) {
1212
await t.test('should expose the public api', async function () {
13-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), ['remove'])
13+
assert.deepEqual(Object.keys(await import('unist-util-remove')).sort(), [
14+
'remove'
15+
])
1416
})
1517

1618
await t.test('should compare nodes by partial properties', function () {

0 commit comments

Comments
 (0)