From 7a38c9070cee7956769672dd48735561b55f9f68 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Fri, 24 Mar 2023 11:48:50 -0700 Subject: [PATCH] Hotfix: Lock RN CLI to 11.0.0-alpha.0 in template (#36631) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36631 Changelog: [Internal] Hotfix for `main` branch CI stability after RN CLI `11.0.0` — the template as bootstrapped in CI needs to reference an exact version. There is no published version (any more) for `11.0.0-alpha.2` (or `11.0.0-alpha.1`). This is a temporary hotfix (we are trying to land https://github.com/facebook/react-native/pull/36623, but are stuck on infra issues). - `11.0.0-alpha.0` includes `metro@0.75.0` (compatible). More info: https://github.com/facebook/react-native/pull/36623#issuecomment-1482745547 Reviewed By: robhogan, NickGerleman Differential Revision: D44371406 fbshipit-source-id: 870a59da521b55f957c8602125aecefb846e6ced --- packages/react-native/template/package.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/react-native/template/package.json b/packages/react-native/template/package.json index 39399524d275e7..feaebd43deae8e 100644 --- a/packages/react-native/template/package.json +++ b/packages/react-native/template/package.json @@ -31,5 +31,17 @@ }, "engines": { "node": ">=16" + }, + "overrides": { + "@react-native-community/cli": "11.0.0-alpha.0", + "@react-native-community/cli-platform-android": "11.0.0-alpha.0", + "@react-native-community/cli-platform-ios": "11.0.0-alpha.0", + "@react-native-community/cli-plugin-metro": "11.0.0-alpha.0" + }, + "resolutions": { + "@react-native-community/cli": "11.0.0-alpha.0", + "@react-native-community/cli-platform-android": "11.0.0-alpha.0", + "@react-native-community/cli-platform-ios": "11.0.0-alpha.0", + "@react-native-community/cli-plugin-metro": "11.0.0-alpha.0" } }