Fix init command in generateTestApp method to use new @react-native-community/template package #589
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR edits the init command to use the new template at @react-native-community/template. Currently, it is set to use the
next
version, as there is a big discrepancy between the nightly build versions available on the react-native package and new @react-native-community/template package.This PR adds a job that will publish a nightly build to the @react-native-community/template package every time a new react-native package is published. Once the react-native-windows repo is integrated up to the same date, we will revert the 'next' to 'reactNativeVersion'. This pending change is tracked in the following issue: microsoft/react-native-windows#13446
Test plan
create-react-native-library.cmd
line 3 to the following:node "%~dp0\create-react-native-library" %* --slug testcli --description testcli --author-name "React-Native-Windows Bot" --author-email [email protected] --author-url http://example.com/ --repo-url http://example.com/ --languages java-objc --type module-new --react-native-version 0.75.0-nightly-20240618-5df5ed1a8 --example vanilla testcli
yarn watch
packages/create-react-native-library/bin/create-react-native-library