Skip to content

Commit f9348f1

Browse files
committed
Change to use export map
1 parent 59af2e5 commit f9348f1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
],
3535
"sideEffects": false,
3636
"type": "module",
37-
"main": "index.js",
38-
"types": "index.d.ts",
37+
"exports": "./index.js",
3938
"files": [
4039
"lib/",
4140
"index.d.ts",

test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import assert from 'node:assert/strict'
1010
import test from 'node:test'
1111
import {u} from 'unist-builder'
12+
import {Index} from 'unist-util-index'
1213
import {select} from 'unist-util-select'
13-
import {Index} from './index.js'
1414

1515
test('core', async function (t) {
1616
await t.test('should expose the public api', async function () {

0 commit comments

Comments
 (0)