File tree Expand file tree Collapse file tree 3 files changed +11
-14
lines changed Expand file tree Collapse file tree 3 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 1
- import type { OnEnterError } from './lib/index.js'
2
-
3
1
export type {
4
2
CompileContext ,
5
3
Encoding ,
@@ -13,6 +11,8 @@ export type {
13
11
Value
14
12
} from './lib/index.js'
15
13
14
+ export { fromMarkdown } from './lib/index.js'
15
+
16
16
/**
17
17
* Interface of tracked data.
18
18
*
@@ -77,5 +77,3 @@ declare module 'micromark-util-types' {
77
77
_spread ?: boolean
78
78
}
79
79
}
80
-
81
- export { fromMarkdown } from './lib/index.js'
Original file line number Diff line number Diff line change 28
28
],
29
29
"sideEffects" : false ,
30
30
"type" : " module" ,
31
- "main" : " index.js" ,
32
- "types" : " index.d.ts" ,
31
+ "exports" : {
32
+ "development" : " ./dev/index.js" ,
33
+ "default" : " ./index.js"
34
+ },
33
35
"files" : [
34
36
" dev/" ,
35
37
" lib/" ,
36
38
" index.d.ts" ,
37
39
" index.js"
38
40
],
39
- "exports" : {
40
- "development" : " ./dev/index.js" ,
41
- "default" : " ./index.js"
42
- },
43
41
"dependencies" : {
44
42
"@types/mdast" : " ^4.0.0" ,
45
43
"@types/unist" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -9,14 +9,15 @@ import {commonmark} from 'commonmark.json'
9
9
import { fromHtml } from 'hast-util-from-html'
10
10
import { toHtml } from 'hast-util-to-html'
11
11
import { toHast } from 'mdast-util-to-hast'
12
+ import { fromMarkdown } from 'mdast-util-from-markdown'
12
13
import { toString } from 'mdast-util-to-string'
13
- import { fromMarkdown } from '../dev/index.js'
14
14
15
15
test ( 'fromMarkdown' , async function ( t ) {
16
16
await t . test ( 'should expose the public api' , async function ( ) {
17
- assert . deepEqual ( Object . keys ( await import ( '../dev/index.js' ) ) . sort ( ) , [
18
- 'fromMarkdown'
19
- ] )
17
+ assert . deepEqual (
18
+ Object . keys ( await import ( 'mdast-util-from-markdown' ) ) . sort ( ) ,
19
+ [ 'fromMarkdown' ]
20
+ )
20
21
} )
21
22
22
23
await t . test ( 'should parse an empty document' , async function ( ) {
You can’t perform that action at this time.
0 commit comments