Skip to content

Commit e6601d2

Browse files
committed
Change to use exports
1 parent 48fdb15 commit e6601d2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@
2929
],
3030
"sideEffects": false,
3131
"type": "module",
32-
"main": "index.js",
32+
"exports": "./index.js",
3333
"files": [
3434
"lib/",
3535
"index.js",
3636
"index.d.ts"
3737
],
38-
"types": "index.d.ts",
3938
"dependencies": {
4039
"@types/estree-jsx": "^1.0.0",
4140
"devlop": "^1.0.0",

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import assert from 'node:assert/strict'
66
import test from 'node:test'
77
import {Parser} from 'acorn'
88
import jsx from 'acorn-jsx'
9-
import {fromEstree} from './index.js'
9+
import {fromEstree} from 'esast-util-from-estree'
1010

1111
const parser = Parser.extend(jsx())
1212

0 commit comments

Comments
 (0)