File tree 2 files changed +8
-9
lines changed
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 @@ -2,19 +2,19 @@ import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { gfmTaskListItem } from 'micromark-extension-gfm-task-list-item'
4
4
import { fromMarkdown } from 'mdast-util-from-markdown'
5
- import { toMarkdown } from 'mdast-util-to-markdown'
6
- import { removePosition } from 'unist-util-remove-position'
7
5
import {
8
6
gfmTaskListItemFromMarkdown ,
9
7
gfmTaskListItemToMarkdown
10
- } from './index.js'
8
+ } from 'mdast-util-gfm-task-list-item'
9
+ import { toMarkdown } from 'mdast-util-to-markdown'
10
+ import { removePosition } from 'unist-util-remove-position'
11
11
12
12
test ( 'core' , async function ( t ) {
13
13
await t . test ( 'should expose the public api' , async function ( ) {
14
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
15
- 'gfmTaskListItemFromMarkdown' ,
16
- ' gfmTaskListItemToMarkdown'
17
- ] )
14
+ assert . deepEqual (
15
+ Object . keys ( await import ( 'mdast-util-gfm-task-list-item' ) ) . sort ( ) ,
16
+ [ 'gfmTaskListItemFromMarkdown' , ' gfmTaskListItemToMarkdown']
17
+ )
18
18
} )
19
19
} )
20
20
You can’t perform that action at this time.
0 commit comments