File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 30
30
],
31
31
"sideEffects" : false ,
32
32
"type" : " module" ,
33
- "main" : " index.js" ,
34
- "types" : " index.d.ts" ,
33
+ "exports" : " ./index.js" ,
35
34
"files" : [
36
35
" lib/" ,
37
36
" index.d.ts" ,
Original file line number Diff line number Diff line change 5
5
import assert from 'node:assert/strict'
6
6
import test from 'node:test'
7
7
import stringWidth from 'string-width'
8
+ import { gfmTable } from 'micromark-extension-gfm-table'
8
9
import { fromMarkdown } from 'mdast-util-from-markdown'
10
+ import { gfmTableFromMarkdown , gfmTableToMarkdown } from 'mdast-util-gfm-table'
9
11
import { toMarkdown } from 'mdast-util-to-markdown'
10
12
import { removePosition } from 'unist-util-remove-position'
11
- import { gfmTable } from 'micromark-extension-gfm-table'
12
- import { gfmTableFromMarkdown , gfmTableToMarkdown } from './index.js'
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 ( ) , [
16
+ assert . deepEqual ( Object . keys ( await import ( 'mdast-util-gfm-table ' ) ) . sort ( ) , [
17
17
'gfmTableFromMarkdown' ,
18
18
'gfmTableToMarkdown'
19
19
] )
You can’t perform that action at this time.
0 commit comments