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 2727 ],
2828 "sideEffects" : false ,
2929 "type" : " module" ,
30- "main" : " index.js" ,
31- "types" : " index.d.ts" ,
30+ "exports" : " ./index.js" ,
3231 "files" : [
3332 " lib/" ,
3433 " index.d.ts" ,
Original file line number Diff line number Diff line change @@ -3,14 +3,17 @@ import test from 'node:test'
33import { fromMarkdown } from 'mdast-util-from-markdown'
44import { toMarkdown } from 'mdast-util-to-markdown'
55import { 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'
710
811test ( 'core' , async function ( t ) {
912 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+ )
1417 } )
1518} )
1619
You can’t perform that action at this time.
0 commit comments