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 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 @@ -6,14 +6,14 @@ import assert from 'node:assert/strict'
66import fs from 'node:fs/promises'
77import process from 'node:process'
88import test from 'node:test'
9+ import { fromHtml } from 'hast-util-from-html'
910import { read } from 'to-vfile'
1011import { VFile } from 'vfile'
1112import { errors as rerrors } from '../lib/errors.js'
12- import { fromHtml } from '../index.js'
1313
1414test ( 'fromHtml' , async function ( t ) {
1515 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 ( ) , [
1717 'fromHtml'
1818 ] )
1919 } )
You can’t perform that action at this time.
0 commit comments