File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 30
30
],
31
31
"sideEffects" : false ,
32
32
"type" : " module" ,
33
- "main" : " index.js" ,
34
- "types" : " index.d.ts" ,
33
+ "exports" : " ./index.js" ,
35
34
"files" : [
36
35
" lib/" ,
37
36
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import test from 'node:test'
3
3
import * as acorn from 'acorn'
4
4
import { mdxjsEsm } from 'micromark-extension-mdxjs-esm'
5
5
import { fromMarkdown } from 'mdast-util-from-markdown'
6
+ import { mdxjsEsmFromMarkdown , mdxjsEsmToMarkdown } from 'mdast-util-mdxjs-esm'
6
7
import { toMarkdown } from 'mdast-util-to-markdown'
7
8
import { removePosition } from 'unist-util-remove-position'
8
- import { mdxjsEsmFromMarkdown , mdxjsEsmToMarkdown } from './index.js'
9
9
10
10
test ( 'core' , async function ( t ) {
11
11
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 ( ) , [
13
13
'mdxjsEsmFromMarkdown' ,
14
14
'mdxjsEsmToMarkdown'
15
15
] )
You can’t perform that action at this time.
0 commit comments