File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-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 @@ -8,17 +8,19 @@ import process from 'node:process'
88import test from 'node:test'
99import { JSDOM } from 'jsdom'
1010import { h , s } from 'hastscript'
11+ import { toDom } from 'hast-util-to-dom'
1112import serialize from 'w3c-xmlserializer'
1213import { webNamespaces } from 'web-namespaces'
13- import { toDom } from '../index.js'
1414
1515const document = new JSDOM ( ) . window . document
1616
1717globalThis . document = document
1818
1919test ( 'toDom' , async function ( t ) {
2020 await t . test ( 'should expose the public api' , async function ( ) {
21- assert . deepEqual ( Object . keys ( await import ( '../index.js' ) ) . sort ( ) , [ 'toDom' ] )
21+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-to-dom' ) ) . sort ( ) , [
22+ 'toDom'
23+ ] )
2224 } )
2325
2426 await t . test ( 'should create an empty root node' , async function ( ) {
You can’t perform that action at this time.
0 commit comments