File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2626 ],
2727 "sideEffects" : false ,
2828 "type" : " module" ,
29- "main" : " index.js" ,
30- "types" : " index.d.ts" ,
29+ "exports" : " ./index.js" ,
3130 "files" : [
3231 " lib/" ,
3332 " index.d.ts" ,
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import stringify from 'json-stringify-safe'
4+ import { toParse5 } from 'hast-util-to-parse5'
45import { parse , parseFragment } from 'parse5'
5- import { toParse5 } from './index.js'
66
77test ( 'toParse5' , async function ( t ) {
88 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 ( ) , [
1010 'toParse5'
1111 ] )
1212 } )
You can’t perform that action at this time.
0 commit comments