Skip to content

Commit a7cc3ce

Browse files
huozhieps1lon
andauthored
fix: missing dependencies for pnpx (#435)
Co-authored-by: eps1lon <sebastian.silbermann@vercel.com>
1 parent 8463103 commit a7cc3ce

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.changeset/fifty-schools-shout.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"types-react-codemod": patch
3+
---
4+
5+
Declare dependency on `@babel/types`
6+
7+
Fixes `types-react-codemod tried to access @babel/types, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound`

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@babel/core": "^7.17.8",
1919
"@babel/parser": "^7.17.8",
2020
"@babel/preset-env": "^7.16.11",
21+
"@babel/types": "^7.17.8",
2122
"inquirer": "^9.0.0",
2223
"jscodeshift": "^0.16.0",
2324
"yargs": "^17.4.0"

yarn.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ __metadata:
13671367
languageName: node
13681368
linkType: hard
13691369

1370-
"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.25.7, @babel/types@npm:^7.25.8, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4":
1370+
"@babel/types@npm:^7.0.0, @babel/types@npm:^7.17.8, @babel/types@npm:^7.20.7, @babel/types@npm:^7.25.7, @babel/types@npm:^7.25.8, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4":
13711371
version: 7.25.8
13721372
resolution: "@babel/types@npm:7.25.8"
13731373
dependencies:
@@ -6189,6 +6189,7 @@ __metadata:
61896189
"@babel/core": ^7.17.8
61906190
"@babel/parser": ^7.17.8
61916191
"@babel/preset-env": ^7.16.11
6192+
"@babel/types": ^7.17.8
61926193
"@changesets/changelog-github": ^0.5.0
61936194
"@changesets/cli": ^2.22.0
61946195
"@jest/globals": ^29.0.0

0 commit comments

Comments
 (0)