Skip to content

Commit 0736ab6

Browse files
committed
Change to use export map
1 parent bdd5362 commit 0736ab6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
],
2525
"sideEffects": false,
2626
"type": "module",
27-
"main": "index.js",
28-
"types": "index.d.ts",
27+
"exports": "./index.js",
2928
"files": [
3029
"lib/",
3130
"index.d.ts",

test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {h} from 'hastscript'
4-
import {size} from './index.js'
4+
import {size} from 'unist-util-size'
55

66
test('size', async function (t) {
77
await t.test('should expose the public api', async function () {
8-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), ['size'])
8+
assert.deepEqual(Object.keys(await import('unist-util-size')).sort(), [
9+
'size'
10+
])
911
})
1012

1113
const tree = h('div', [

0 commit comments

Comments
 (0)