From b7dcea23f8d2e75db5841612b9800291cd4c1e1f Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Tue, 21 Jul 2026 12:08:05 +0200 Subject: [PATCH] fix(cli): bundle supported Jest CLI runtime --- .nx/version-plans/version-plan-1784628278546.md | 5 +++++ packages/cli/package.json | 5 +---- pnpm-lock.yaml | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 .nx/version-plans/version-plan-1784628278546.md diff --git a/.nx/version-plans/version-plan-1784628278546.md b/.nx/version-plans/version-plan-1784628278546.md new file mode 100644 index 00000000..d54a9480 --- /dev/null +++ b/.nx/version-plans/version-plan-1784628278546.md @@ -0,0 +1,5 @@ +--- +__default__: patch +--- + +Harness commands now include the supported Jest CLI runtime, so the init command works when invoked through yarn dlx or npx. diff --git a/packages/cli/package.json b/packages/cli/package.json index 2871eeac..b29f16b5 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -25,16 +25,13 @@ "@react-native-harness/config": "workspace:*", "@react-native-harness/platforms": "workspace:*", "@react-native-harness/tools": "workspace:*", + "jest-cli": "^30.2.0", "tslib": "^2.3.0" }, "devDependencies": { - "jest-cli": "^30.2.0", "@react-native-harness/platform-android": "workspace:*", "@react-native-harness/platform-apple": "workspace:*", "@react-native-harness/platform-web": "workspace:*" }, - "peerDependencies": { - "jest-cli": "*" - }, "license": "MIT" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f060f58e..e36eabc5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -327,6 +327,9 @@ importers: '@react-native-harness/tools': specifier: workspace:* version: link:../tools + jest-cli: + specifier: ^30.2.0 + version: 30.2.0(@types/node@20.19.25)(babel-plugin-macros@3.1.0) tslib: specifier: ^2.3.0 version: 2.8.1 @@ -340,9 +343,6 @@ importers: '@react-native-harness/platform-web': specifier: workspace:* version: link:../platform-web - jest-cli: - specifier: ^30.2.0 - version: 30.2.0(@types/node@20.19.25)(babel-plugin-macros@3.1.0) packages/config: dependencies: