Skip to content

Commit 6259200

Browse files
committed
Change to use exports
1 parent a03d6ff commit 6259200

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
],
2929
"sideEffects": false,
3030
"type": "module",
31-
"main": "index.js",
32-
"types": "index.d.ts",
31+
"exports": "./index.js",
3332
"files": [
3433
"lib/",
3534
"index.d.ts",

Diff for: test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {math} from 'micromark-extension-math'
44
import {fromMarkdown} from 'mdast-util-from-markdown'
5+
import {mathFromMarkdown, mathToMarkdown} from 'mdast-util-math'
56
import {toMarkdown} from 'mdast-util-to-markdown'
6-
import {mathFromMarkdown, mathToMarkdown} from './index.js'
77

88
test('core', async function (t) {
99
await t.test('should expose the public api', async function () {
10-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
10+
assert.deepEqual(Object.keys(await import('mdast-util-math')).sort(), [
1111
'mathFromMarkdown',
1212
'mathToMarkdown'
1313
])

0 commit comments

Comments
 (0)