Skip to content

Commit 798ca2a

Browse files
committed
Change to use export map
1 parent 043d922 commit 798ca2a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
],
2929
"sideEffects": false,
3030
"type": "module",
31-
"main": "index.js",
32-
"types": "index.d.ts",
31+
"exports": "./index.js",
3332
"files": [
3433
"lib/",
3534
"index.d.ts",

test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
/**
2-
* @typedef {import('mdast').Content} Content
32
* @typedef {import('mdast').Root} Root
43
*/
54

65
import assert from 'node:assert/strict'
76
import test from 'node:test'
87
import {u} from 'unist-builder'
9-
import {map} from './index.js'
8+
import {map} from 'unist-util-map'
109

1110
test('map', async function (t) {
1211
await t.test('should expose the public api', async function () {
13-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), ['map'])
12+
assert.deepEqual(Object.keys(await import('unist-util-map')).sort(), [
13+
'map'
14+
])
1415
})
1516

1617
await t.test('should map the specified node', async function () {

0 commit comments

Comments
 (0)