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 28
28
],
29
29
"sideEffects" : false ,
30
30
"type" : " module" ,
31
- "main" : " index.js" ,
32
- "types" : " index.d.ts" ,
31
+ "exports" : " ./index.js" ,
33
32
"files" : [
34
33
" lib/" ,
35
34
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef {import('../index.js ').Options } Options
2
+ * @typedef {import('hast-util-to-mdast ').Options } Options
3
3
*/
4
4
5
5
/**
@@ -17,6 +17,7 @@ import process from 'node:process'
17
17
import test from 'node:test'
18
18
import { h } from 'hastscript'
19
19
import { fromHtml } from 'hast-util-from-html'
20
+ import { toMdast } from 'hast-util-to-mdast'
20
21
import { isHidden } from 'is-hidden'
21
22
import { assert as mdastAssert } from 'mdast-util-assert'
22
23
import { fromMarkdown } from 'mdast-util-from-markdown'
@@ -25,11 +26,10 @@ import {toMarkdown} from 'mdast-util-to-markdown'
25
26
import { gfm } from 'micromark-extension-gfm'
26
27
import { u } from 'unist-builder'
27
28
import { removePosition } from 'unist-util-remove-position'
28
- import { toMdast } from '../index.js'
29
29
30
30
test ( 'core' , async function ( t ) {
31
31
await t . test ( 'should expose the public api' , async function ( ) {
32
- assert . deepEqual ( Object . keys ( await import ( '../index.js ' ) ) . sort ( ) , [
32
+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-to-mdast ' ) ) . sort ( ) , [
33
33
'defaultHandlers' ,
34
34
'defaultNodeHandlers' ,
35
35
'toMdast'
You can’t perform that action at this time.
0 commit comments