Skip to content

Commit fe633ad

Browse files
committed
Change to use export map
1 parent 9e8d082 commit fe633ad

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
@@ -29,8 +29,7 @@
2929
],
3030
"sideEffects": false,
3131
"type": "module",
32-
"main": "index.js",
33-
"types": "index.d.ts",
32+
"exports": "./index.js",
3433
"files": [
3534
"lib/",
3635
"index.d.ts",

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import assert from 'node:assert/strict'
77
import test from 'node:test'
88
import structuredClone from '@ungap/structured-clone'
9-
import {parents} from './index.js'
9+
import {parents} from 'unist-util-parents'
1010

1111
/** @type {Root} */
1212
const ast = {
@@ -26,7 +26,7 @@ const ast = {
2626

2727
test('parents', async function (t) {
2828
await t.test('should expose the public api', async function () {
29-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
29+
assert.deepEqual(Object.keys(await import('unist-util-parents')).sort(), [
3030
'parents'
3131
])
3232
})

0 commit comments

Comments
 (0)