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 2828 ],
2929 "sideEffects" : false ,
3030 "type" : " module" ,
31- "main" : " index.js" ,
32- "types" : " index.d.ts" ,
31+ "exports" : " ./index.js" ,
3332 "files" : [
3433 " lib/" ,
3534 " index.d.ts" ,
Original file line number Diff line number Diff line change 11/**
2- * @typedef {import('../index.js ').Options } Options
2+ * @typedef {import('hast-util-to-mdast ').Options } Options
33 */
44
55/**
@@ -17,6 +17,7 @@ import process from 'node:process'
1717import test from 'node:test'
1818import { h } from 'hastscript'
1919import { fromHtml } from 'hast-util-from-html'
20+ import { toMdast } from 'hast-util-to-mdast'
2021import { isHidden } from 'is-hidden'
2122import { assert as mdastAssert } from 'mdast-util-assert'
2223import { fromMarkdown } from 'mdast-util-from-markdown'
@@ -25,11 +26,10 @@ import {toMarkdown} from 'mdast-util-to-markdown'
2526import { gfm } from 'micromark-extension-gfm'
2627import { u } from 'unist-builder'
2728import { removePosition } from 'unist-util-remove-position'
28- import { toMdast } from '../index.js'
2929
3030test ( 'core' , async function ( t ) {
3131 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 ( ) , [
3333 'defaultHandlers' ,
3434 'defaultNodeHandlers' ,
3535 'toMdast'
You can’t perform that action at this time.
0 commit comments