Skip to content

Commit

Permalink
fix: missing dependencies for pnpx (#435)
Browse files Browse the repository at this point in the history
Co-authored-by: eps1lon <[email protected]>
  • Loading branch information
huozhi and eps1lon authored Oct 14, 2024
1 parent 8463103 commit a7cc3ce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/fifty-schools-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"types-react-codemod": patch
---

Declare dependency on `@babel/types`

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`
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@babel/core": "^7.17.8",
"@babel/parser": "^7.17.8",
"@babel/preset-env": "^7.16.11",
"@babel/types": "^7.17.8",
"inquirer": "^9.0.0",
"jscodeshift": "^0.16.0",
"yargs": "^17.4.0"
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ __metadata:
languageName: node
linkType: hard

"@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":
"@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":
version: 7.25.8
resolution: "@babel/types@npm:7.25.8"
dependencies:
Expand Down Expand Up @@ -6189,6 +6189,7 @@ __metadata:
"@babel/core": ^7.17.8
"@babel/parser": ^7.17.8
"@babel/preset-env": ^7.16.11
"@babel/types": ^7.17.8
"@changesets/changelog-github": ^0.5.0
"@changesets/cli": ^2.22.0
"@jest/globals": ^29.0.0
Expand Down

0 comments on commit a7cc3ce

Please sign in to comment.