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 2424 " Keith McKnight <[email protected] > (https://keith.mcknig.ht)" ,
2525 " Titus Wormer <[email protected] > (https://wooorm.com)" 2626 ],
27- "main" : " index.js" ,
2827 "sideEffects" : false ,
2928 "type" : " module" ,
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 @@ -8,15 +8,15 @@ import assert from 'node:assert/strict'
88import fs from 'node:fs/promises'
99import process from 'node:process'
1010import test from 'node:test'
11+ import { fromDom } from 'hast-util-from-dom'
1112import { JSDOM } from 'jsdom'
12- import { fromDom } from '../index.js'
1313
1414const window = new JSDOM ( ) . window
1515globalThis . document = window . document
1616
1717test ( 'fromDom' , async function ( t ) {
1818 await t . test ( 'should expose the public api' , async function ( ) {
19- assert . deepEqual ( Object . keys ( await import ( '../index.js ' ) ) . sort ( ) , [
19+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-from-dom ' ) ) . sort ( ) , [
2020 'fromDom'
2121 ] )
2222 } )
You can’t perform that action at this time.
0 commit comments