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 27
27
],
28
28
"sideEffects" : false ,
29
29
"type" : " module" ,
30
- "main" : " index.js" ,
31
- "types" : " index.d.ts" ,
30
+ "exports" : " ./index.js" ,
32
31
"files" : [
33
32
" lib/" ,
34
33
" index.d.ts" ,
Original file line number Diff line number Diff line change 5
5
import assert from 'node:assert/strict'
6
6
import test from 'node:test'
7
7
import { h , s } from 'hastscript'
8
+ import { toXast } from 'hast-util-to-xast'
8
9
import { u } from 'unist-builder'
9
10
import { webNamespaces } from 'web-namespaces'
10
11
import { x } from 'xastscript'
11
- import { toXast } from './index.js'
12
12
13
13
test ( 'main' , async function ( t ) {
14
14
await t . test ( 'should expose the public api' , async function ( ) {
15
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [ 'toXast' ] )
15
+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-to-xast' ) ) . sort ( ) , [
16
+ 'toXast'
17
+ ] )
16
18
} )
17
19
18
20
await t . test ( 'should throw without node' , async function ( ) {
You can’t perform that action at this time.
0 commit comments