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 3030 ],
3131 "sideEffects" : false ,
3232 "type" : " module" ,
33- "main" : " index.js" ,
34- "types" : " index.d.ts" ,
33+ "exports" : " ./index.js" ,
3534 "files" : [
3635 " lib/" ,
3736 " index.d.ts" ,
Original file line number Diff line number Diff line change 22 * @typedef {import('hast').Element } Element
33 * @typedef {import('mdast').Paragraph } Paragraph
44 * @typedef {import('mdast').Root } Root
5+ * @typedef {import('remark-html').Options } Options
56 * @typedef {import('unified').Pluggable } Pluggable
6- * @typedef {import('../index.js').Options } Options
77 */
88
99import assert from 'node:assert/strict'
@@ -16,16 +16,16 @@ import {toHtml} from 'hast-util-to-html'
1616import remarkFrontmatter from 'remark-frontmatter'
1717import remarkGfm from 'remark-gfm'
1818import remarkGithub from 'remark-github'
19+ import remarkHtml from 'remark-html'
1920import remarkParse from 'remark-parse'
2021import remarkSlug from 'remark-slug'
2122import remarkToc from 'remark-toc'
2223import { unified } from 'unified'
2324import { VFile } from 'vfile'
24- import remarkHtml from '../index.js'
2525
2626test ( 'remarkHtml' , async function ( t ) {
2727 await t . test ( 'should expose the public api' , async function ( ) {
28- assert . deepEqual ( Object . keys ( await import ( '../index.js ' ) ) . sort ( ) , [
28+ assert . deepEqual ( Object . keys ( await import ( 'remark-html ' ) ) . sort ( ) , [
2929 'default'
3030 ] )
3131 } )
You can’t perform that action at this time.
0 commit comments