Skip to content

Commit 52d0484

Browse files
committed
Change to use export map
1 parent bee0fde commit 52d0484

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
],
2727
"sideEffects": false,
2828
"type": "module",
29-
"main": "index.js",
30-
"types": "index.d.ts",
29+
"exports": "./index.js",
3130
"files": [
3231
"lib/",
3332
"index.d.ts",

test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import assert from 'node:assert/strict'
66
import test from 'node:test'
77
import {fromMarkdown} from 'mdast-util-from-markdown'
8-
import {findAllAfter} from './index.js'
8+
import {findAllAfter} from 'unist-util-find-all-after'
99

1010
const tree = fromMarkdown('Some *emphasis*, **importance**, and `code`.')
1111
const paragraph = tree.children[0]
@@ -14,9 +14,10 @@ const children = paragraph.children
1414

1515
test('findAllAfter', async function (t) {
1616
await t.test('should expose the public api', async function () {
17-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
18-
'findAllAfter'
19-
])
17+
assert.deepEqual(
18+
Object.keys(await import('unist-util-find-all-after')).sort(),
19+
['findAllAfter']
20+
)
2021
})
2122

2223
await t.test('should fail without parent', async function () {

0 commit comments

Comments
 (0)