Skip to content

Commit 87b7dfc

Browse files
committed
Change to use export map
1 parent 22e7e04 commit 87b7dfc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
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
"index.d.ts",
3837
"index.js"

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import assert from 'node:assert/strict'
22
import test from 'tape'
33
import {fromMarkdown} from 'mdast-util-from-markdown'
4-
import {find} from './index.js'
4+
import {find} from 'unist-util-find'
55

6-
test('unist-find', function (t) {
6+
test('find', function (t) {
77
const tree = fromMarkdown('Some _emphasis_, **strongness**, and `code`.')
88
assert(tree.type === 'root')
99
const paragraph = tree.children[0]

0 commit comments

Comments
 (0)