File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 25
25
],
26
26
"sideEffects" : false ,
27
27
"type" : " module" ,
28
- "main" : " index.js" ,
29
- "types" : " index.d.ts" ,
28
+ "exports" : " ./index.js" ,
30
29
"files" : [
31
30
" lib/" ,
32
31
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ import assert from 'node:assert/strict'
6
6
import fs from 'node:fs/promises'
7
7
import process from 'node:process'
8
8
import test from 'node:test'
9
+ import { fromHtml } from 'hast-util-from-html'
9
10
import { read } from 'to-vfile'
10
11
import { VFile } from 'vfile'
11
12
import { errors as rerrors } from '../lib/errors.js'
12
- import { fromHtml } from '../index.js'
13
13
14
14
test ( 'fromHtml' , 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 ( 'hast-util-from-html ' ) ) . sort ( ) , [
17
17
'fromHtml'
18
18
] )
19
19
} )
You can’t perform that action at this time.
0 commit comments