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 29
29
],
30
30
"sideEffects" : false ,
31
31
"type" : " module" ,
32
- "main" : " index.js" ,
33
- "types" : " index.d.ts" ,
32
+ "exports" : " ./index.js" ,
34
33
"files" : [
35
34
" lib/" ,
36
35
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import assert from 'node:assert/strict'
6
6
import test from 'node:test'
7
7
import { Parser } from 'acorn'
8
8
import acornJsx from 'acorn-jsx'
9
+ import { jsx , toJs } from 'estree-util-to-js'
9
10
import { SourceMapGenerator } from 'source-map'
10
- import { jsx , toJs } from '../index.js'
11
11
12
12
test ( 'toJs' , async function ( t ) {
13
13
await t . test ( 'should expose the public api' , async function ( ) {
14
- assert . deepEqual ( Object . keys ( await import ( '../index. js' ) ) . sort ( ) , [
14
+ assert . deepEqual ( Object . keys ( await import ( 'estree-util-to- js' ) ) . sort ( ) , [
15
15
'jsx' ,
16
16
'toJs'
17
17
] )
You can’t perform that action at this time.
0 commit comments