File tree 3 files changed +5
-6
lines changed 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 29
29
],
30
30
"sideEffects" : false ,
31
31
"type" : " module" ,
32
- "main" : " index.js" ,
33
- "types" : " index.d.ts" ,
32
+ "exports" : " ./index.js" ,
34
33
"files" : [
35
34
" lib/" ,
36
35
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -110,10 +110,10 @@ Which you can also put inline: {1+1}.
110
110
111
111
``` js
112
112
import fs from ' node:fs/promises'
113
- import {fromMarkdown } from ' mdast-util-from-markdown'
114
- import {toMarkdown } from ' mdast-util-to-markdown'
115
113
import {mdxjs } from ' micromark-extension-mdxjs'
114
+ import {fromMarkdown } from ' mdast-util-from-markdown'
116
115
import {mdxFromMarkdown , mdxToMarkdown } from ' mdast-util-mdx'
116
+ import {toMarkdown } from ' mdast-util-to-markdown'
117
117
118
118
const doc = await fs .readFile (' example.mdx' )
119
119
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { mdxjs } from 'micromark-extension-mdxjs'
4
4
import { fromMarkdown } from 'mdast-util-from-markdown'
5
+ import { mdxFromMarkdown , mdxToMarkdown } from 'mdast-util-mdx'
5
6
import { toMarkdown } from 'mdast-util-to-markdown'
6
- import { mdxFromMarkdown , mdxToMarkdown } from './index.js'
7
7
8
8
test ( 'core' , async function ( t ) {
9
9
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-mdx ' ) ) . sort ( ) , [
11
11
'mdxFromMarkdown' ,
12
12
'mdxToMarkdown'
13
13
] )
You can’t perform that action at this time.
0 commit comments