Skip to content

Commit 6440b57

Browse files
committedJul 11, 2023
Change to use exports
1 parent df2b873 commit 6440b57

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

‎test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import test from 'node:test'
33
import * as acorn from 'acorn'
44
import {mdxjsEsm} from 'micromark-extension-mdxjs-esm'
55
import {fromMarkdown} from 'mdast-util-from-markdown'
6+
import {mdxjsEsmFromMarkdown, mdxjsEsmToMarkdown} from 'mdast-util-mdxjs-esm'
67
import {toMarkdown} from 'mdast-util-to-markdown'
78
import {removePosition} from 'unist-util-remove-position'
8-
import {mdxjsEsmFromMarkdown, mdxjsEsmToMarkdown} from './index.js'
99

1010
test('core', async function (t) {
1111
await t.test('should expose the public api', async function () {
12-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
12+
assert.deepEqual(Object.keys(await import('mdast-util-mdxjs-esm')).sort(), [
1313
'mdxjsEsmFromMarkdown',
1414
'mdxjsEsmToMarkdown'
1515
])

0 commit comments

Comments
 (0)
Please sign in to comment.