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