File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import test from 'node:test'
33import * as acorn from 'acorn'
44import { mdxjsEsm } from 'micromark-extension-mdxjs-esm'
55import { fromMarkdown } from 'mdast-util-from-markdown'
6+ import { mdxjsEsmFromMarkdown , mdxjsEsmToMarkdown } from 'mdast-util-mdxjs-esm'
67import { toMarkdown } from 'mdast-util-to-markdown'
78import { removePosition } from 'unist-util-remove-position'
8- import { mdxjsEsmFromMarkdown , mdxjsEsmToMarkdown } from './index.js'
99
1010test ( '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 ] )
You can’t perform that action at this time.
0 commit comments