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 26
26
],
27
27
"sideEffects" : false ,
28
28
"type" : " module" ,
29
- "main" : " index.js" ,
30
- "types" : " index.d.ts" ,
29
+ "exports" : " ./index.js" ,
31
30
"files" : [
32
31
" lib/" ,
33
32
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import stringify from 'json-stringify-safe'
4
+ import { toParse5 } from 'hast-util-to-parse5'
4
5
import { parse , parseFragment } from 'parse5'
5
- import { toParse5 } from './index.js'
6
6
7
7
test ( 'toParse5' , async function ( t ) {
8
8
await t . test ( 'should expose the public api' , async function ( ) {
9
- assert . deepEqual ( Object . keys ( await import ( './index.js ' ) ) . sort ( ) , [
9
+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-to-parse5 ' ) ) . sort ( ) , [
10
10
'toParse5'
11
11
] )
12
12
} )
You can’t perform that action at this time.
0 commit comments