File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 24
24
" Keith McKnight <keith@mcknig.ht> (https://keith.mcknig.ht)" ,
25
25
" Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
26
26
],
27
- "main" : " index.js" ,
28
27
"sideEffects" : false ,
29
28
"type" : " module" ,
30
- "types " : " index.d.ts " ,
29
+ "exports " : " ./ index.js " ,
31
30
"files" : [
32
31
" lib/" ,
33
32
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ import assert from 'node:assert/strict'
8
8
import fs from 'node:fs/promises'
9
9
import process from 'node:process'
10
10
import test from 'node:test'
11
+ import { fromDom } from 'hast-util-from-dom'
11
12
import { JSDOM } from 'jsdom'
12
- import { fromDom } from '../index.js'
13
13
14
14
const window = new JSDOM ( ) . window
15
15
globalThis . document = window . document
16
16
17
17
test ( 'fromDom' , async function ( t ) {
18
18
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 ( ) , [
20
20
'fromDom'
21
21
] )
22
22
} )
You can’t perform that action at this time.
0 commit comments