Skip to content

Commit 3fe14d6

Browse files
committed
Change to use exports
1 parent 0ecf61e commit 3fe14d6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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",

test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import * as acorn from 'acorn'
44
import {mdxJsx} from 'micromark-extension-mdx-jsx'
55
import {mdxMd} from 'micromark-extension-mdx-md'
66
import {fromMarkdown} from 'mdast-util-from-markdown'
7+
import {mdxJsxFromMarkdown, mdxJsxToMarkdown} from 'mdast-util-mdx-jsx'
78
import {toMarkdown} from 'mdast-util-to-markdown'
89
import {removePosition} from 'unist-util-remove-position'
9-
import {mdxJsxFromMarkdown, mdxJsxToMarkdown} from './index.js'
1010

1111
test('core', async function (t) {
1212
await t.test('should expose the public api', async function () {
13-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
13+
assert.deepEqual(Object.keys(await import('mdast-util-mdx-jsx')).sort(), [
1414
'mdxJsxFromMarkdown',
1515
'mdxJsxToMarkdown'
1616
])

0 commit comments

Comments
 (0)