File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 27
27
],
28
28
"sideEffects" : false ,
29
29
"type" : " module" ,
30
- "main" : " index.js" ,
31
- "types" : " index.d.ts" ,
30
+ "exports" : " ./index.js" ,
32
31
"files" : [
33
32
" lib/" ,
34
33
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -3,14 +3,17 @@ import test from 'node:test'
3
3
import { fromMarkdown } from 'mdast-util-from-markdown'
4
4
import { toMarkdown } from 'mdast-util-to-markdown'
5
5
import { gfmFootnote } from 'micromark-extension-gfm-footnote'
6
- import { gfmFootnoteFromMarkdown , gfmFootnoteToMarkdown } from './index.js'
6
+ import {
7
+ gfmFootnoteFromMarkdown ,
8
+ gfmFootnoteToMarkdown
9
+ } from 'mdast-util-gfm-footnote'
7
10
8
11
test ( 'core' , async function ( t ) {
9
12
await t . test ( 'should expose the public api' , async function ( ) {
10
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
11
- 'gfmFootnoteFromMarkdown' ,
12
- ' gfmFootnoteToMarkdown'
13
- ] )
13
+ assert . deepEqual (
14
+ Object . keys ( await import ( 'mdast-util-gfm-footnote' ) ) . sort ( ) ,
15
+ [ 'gfmFootnoteFromMarkdown' , ' gfmFootnoteToMarkdown']
16
+ )
14
17
} )
15
18
} )
16
19
You can’t perform that action at this time.
0 commit comments