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 2
2
* @typedef {import('hast').Element } Element
3
3
* @typedef {import('mdast').Paragraph } Paragraph
4
4
* @typedef {import('mdast').Root } Root
5
+ * @typedef {import('remark-html').Options } Options
5
6
* @typedef {import('unified').Pluggable } Pluggable
6
- * @typedef {import('../index.js').Options } Options
7
7
*/
8
8
9
9
import assert from 'node:assert/strict'
@@ -16,16 +16,16 @@ import {toHtml} from 'hast-util-to-html'
16
16
import remarkFrontmatter from 'remark-frontmatter'
17
17
import remarkGfm from 'remark-gfm'
18
18
import remarkGithub from 'remark-github'
19
+ import remarkHtml from 'remark-html'
19
20
import remarkParse from 'remark-parse'
20
21
import remarkSlug from 'remark-slug'
21
22
import remarkToc from 'remark-toc'
22
23
import { unified } from 'unified'
23
24
import { VFile } from 'vfile'
24
- import remarkHtml from '../index.js'
25
25
26
26
test ( 'remarkHtml' , async function ( t ) {
27
27
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 ( ) , [
29
29
'default'
30
30
] )
31
31
} )
You can’t perform that action at this time.
0 commit comments