From 99b87a7daaacc42c8d95e86b326746cc8c94e883 Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Fri, 10 May 2024 14:52:04 +0100 Subject: [PATCH] feat: use @react-native-community/cli instead of react-native Calling the CLI this way is the new guidance, as the old way will eventually stop working [1]. [1] https://github.com/facebook/react-native/commit/47a3f5200708fc0247d8b403dbe447af636b79cb --- scripts/new-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/new-release.sh b/scripts/new-release.sh index 92260a8a1c..ce9d2e6497 100755 --- a/scripts/new-release.sh +++ b/scripts/new-release.sh @@ -56,7 +56,7 @@ function generateNewReleaseBranch () { git checkout -b "$branchName" # generate app and remove generated git repo - npx react-native@"${newRelease}" init "$AppName" --version "$newRelease" --skip-install + npx @react-native-community/cli@latest init "$AppName" --version "$newRelease" --skip-install # clean up before committing for diffing rm -rf "$AppName"/.git