File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3232 ],
3333 "sideEffects" : false ,
3434 "type" : " module" ,
35- "main" : " index.js" ,
36- "types" : " index.d.ts" ,
35+ "exports" : " ./index.js" ,
3736 "files" : [
3837 " lib/" ,
3938 " index.d.ts" ,
Original file line number Diff line number Diff line change @@ -9,17 +9,18 @@ import assert from 'node:assert/strict'
99import test from 'node:test'
1010import { Parser } from 'acorn'
1111import jsx from 'acorn-jsx'
12- import { walk } from 'estree-walker'
1312import { generate } from 'astring'
14- import { buildJsx } from './index.js'
13+ import { buildJsx } from 'estree-util-build-jsx'
14+ import { walk } from 'estree-walker'
1515
1616const parser = Parser . extend ( jsx ( ) )
1717
1818test ( 'estree-util-build-jsx' , async function ( t ) {
1919 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+ )
2324 } )
2425
2526 await t . test (
You can’t perform that action at this time.
0 commit comments