File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2525 ],
2626 "sideEffects" : false ,
2727 "type" : " module" ,
28- "main" : " index.js" ,
29- "types" : " index.d.ts" ,
28+ "exports" : " ./index.js" ,
3029 "files" : [
3130 " lib/" ,
3231 " index.d.ts" ,
Original file line number Diff line number Diff line change 1515import assert from 'node:assert/strict'
1616import fs from 'node:fs/promises'
1717import test from 'node:test'
18+ import { fromParse5 } from 'hast-util-from-parse5'
1819import { isHidden } from 'is-hidden'
1920import { parse , parseFragment } from 'parse5'
2021import { read , toVFile } from 'to-vfile'
2122import { visit } from 'unist-util-visit'
22- import { fromParse5 } from '../index.js'
2323
2424test ( 'fromParse5' , async function ( t ) {
2525 const file = toVFile ( { value : '<title>Hello!</title><h1>World!' } )
2626
2727 await t . test ( 'should expose the public api' , async function ( ) {
28- assert . deepEqual ( Object . keys ( await import ( '../index.js' ) ) . sort ( ) , [
29- 'fromParse5'
30- ] )
28+ assert . deepEqual (
29+ Object . keys ( await import ( 'hast-util-from-parse5' ) ) . sort ( ) ,
30+ [ 'fromParse5' ]
31+ )
3132 } )
3233
3334 await t . test ( 'should transform a complete document' , async function ( ) {
You can’t perform that action at this time.
0 commit comments