File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 32
32
],
33
33
"sideEffects" : false ,
34
34
"type" : " module" ,
35
- "main" : " index.js" ,
36
- "types" : " index.d.ts" ,
35
+ "exports" : " ./index.js" ,
37
36
"files" : [
38
37
" lib/" ,
39
38
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -9,17 +9,18 @@ import assert from 'node:assert/strict'
9
9
import test from 'node:test'
10
10
import { Parser } from 'acorn'
11
11
import jsx from 'acorn-jsx'
12
- import { walk } from 'estree-walker'
13
12
import { generate } from 'astring'
14
- import { buildJsx } from './index.js'
13
+ import { buildJsx } from 'estree-util-build-jsx'
14
+ import { walk } from 'estree-walker'
15
15
16
16
const parser = Parser . extend ( jsx ( ) )
17
17
18
18
test ( 'estree-util-build-jsx' , async function ( t ) {
19
19
await t . test ( 'should expose the public api' , async function ( ) {
20
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
21
- 'buildJsx'
22
- ] )
20
+ assert . deepEqual (
21
+ Object . keys ( await import ( 'estree-util-build-jsx' ) ) . sort ( ) ,
22
+ [ 'buildJsx' ]
23
+ )
23
24
} )
24
25
25
26
await t . test (
You can’t perform that action at this time.
0 commit comments