File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 2929 ],
3030 "sideEffects" : false ,
3131 "type" : " module" ,
32- "main" : " index.js" ,
33- "types" : " index.d.ts" ,
32+ "exports" : " ./index.js" ,
3433 "files" : [
3534 " lib/" ,
3635 " 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}.
110110
111111``` js
112112import fs from ' node:fs/promises'
113- import {fromMarkdown } from ' mdast-util-from-markdown'
114- import {toMarkdown } from ' mdast-util-to-markdown'
115113import {mdxjs } from ' micromark-extension-mdxjs'
114+ import {fromMarkdown } from ' mdast-util-from-markdown'
116115import {mdxFromMarkdown , mdxToMarkdown } from ' mdast-util-mdx'
116+ import {toMarkdown } from ' mdast-util-to-markdown'
117117
118118const doc = await fs .readFile (' example.mdx' )
119119
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import assert from 'node:assert/strict'
22import test from 'node:test'
33import { mdxjs } from 'micromark-extension-mdxjs'
44import { fromMarkdown } from 'mdast-util-from-markdown'
5+ import { mdxFromMarkdown , mdxToMarkdown } from 'mdast-util-mdx'
56import { toMarkdown } from 'mdast-util-to-markdown'
6- import { mdxFromMarkdown , mdxToMarkdown } from './index.js'
77
88test ( 'core' , async function ( t ) {
99 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 ( ) , [
1111 'mdxFromMarkdown' ,
1212 'mdxToMarkdown'
1313 ] )
You can’t perform that action at this time.
0 commit comments