From a7cc3ce07a5a7a2a6cbac36987c1b0ba4069343f Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Mon, 14 Oct 2024 15:07:38 +0200 Subject: [PATCH] fix: missing dependencies for pnpx (#435) Co-authored-by: eps1lon --- .changeset/fifty-schools-shout.md | 7 +++++++ package.json | 1 + yarn.lock | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/fifty-schools-shout.md diff --git a/.changeset/fifty-schools-shout.md b/.changeset/fifty-schools-shout.md new file mode 100644 index 00000000..3be08fdc --- /dev/null +++ b/.changeset/fifty-schools-shout.md @@ -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` diff --git a/package.json b/package.json index d99b6ffa..1b1f69d1 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/yarn.lock b/yarn.lock index d0fdb521..464f3d45 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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: @@ -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