Skip to content

Commit

Permalink
feat: use @react-native-community/cli instead of react-native
Browse files Browse the repository at this point in the history
Calling the CLI this way is the new guidance, as the old way will
eventually stop working [1].

[1] facebook/react-native@47a3f52
  • Loading branch information
blakef committed May 10, 2024
1 parent 83dd214 commit 99b87a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/new-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99b87a7

Please sign in to comment.