Skip to content

Commit 716dd61

Browse files
committed
Change to use export map
1 parent 48503fe commit 716dd61

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,13 +5,14 @@
55
import assert from 'node:assert/strict'
66
import test from 'node:test'
77
import {fromMarkdown} from 'mdast-util-from-markdown'
8-
import {headingStyle} from './index.js'
8+
import {headingStyle} from 'mdast-util-heading-style'
99

1010
test('headingStyle', async function (t) {
1111
await t.test('should expose the public api', async function () {
12-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
13-
'headingStyle'
14-
])
12+
assert.deepEqual(
13+
Object.keys(await import('mdast-util-heading-style')).sort(),
14+
['headingStyle']
15+
)
1516
})
1617

1718
await t.test('should fail without node', async function () {

0 commit comments

Comments
 (0)