Skip to content

Commit

Permalink
fix babel8 types
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Nov 2, 2022
1 parent 01bdaca commit 0e2888e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/babel-parser/package.json
Expand Up @@ -55,7 +55,8 @@
"exports": {
".": {
"require": "./lib/index.cjs",
"default": "./lib/index.js"
"default": "./lib/index.js",
"types": "./typings/babel-parser.d.ts"
},
"./package.json": "./package.json"
}
Expand All @@ -66,7 +67,8 @@
"exports": {
".": {
"require": "./index.cjs",
"default": "./lib/index.js"
"default": "./lib/index.js",
"types": "./typings/babel-parser.d.ts"
},
"./package.json": "./package.json"
},
Expand Down
5 changes: 4 additions & 1 deletion packages/babel-types/package.json
Expand Up @@ -52,7 +52,10 @@
]
},
"exports": {
".": "./lib/index.js",
".": {
"default": "./lib/index.js",
"types": "./lib/index-legacy.d.ts"
},
"./package.json": "./package.json"
},
"type": "commonjs"
Expand Down

0 comments on commit 0e2888e

Please sign in to comment.