-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Teach React Native CLI about master and 0.61 versions (#4403)
* Teach React Native CLI about master and 0.61 versions Add special rules for the master template to rnpm-plugin-windows to allow 0.0.0 versions of React Native Windows to match to non 0.0.0 versions of React Native, while we're not caught up yet. Do not force the "vnext" tag for 0.61 builds without a template. We also rewrite some of the fuzzy logic added in #2559, which was explicitly allowing prereleases to be matched when we didn't force a tag. We didn't run into this in 0.59 or 0.60 given forcing vnext ot legacy. Part of the master logic was tested end-to-end in the 0.62 branch, but I plan to revalidate before checkin. Behavior was tested for different versions of RN by using the "--windowsVersion" flag to simulate different installed RN versions, and observing the package we try to install. Will verify this works as expected in 0.61-stable before checkin. Will cherry-pick this into 0.61-stable and submit in the same change as the pblish change. This should also allow us to change master to 0.0.0 scheme shortly after publishing. * Change files * Fix default tag for 0.57 and below * Fix formatting * Add a comment explaining the overall version matching algorithm
- Loading branch information
1 parent
6c0c6a4
commit 1a13b00
Showing
4 changed files
with
141 additions
and
70 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
change/rnpm-plugin-windows-2020-03-23-15-44-43-cli-versions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "Teach React Native CLI about master and 0.61 versions", | ||
"packageName": "rnpm-plugin-windows", | ||
"email": "[email protected]", | ||
"commit": "89e1071abb6ec12023ae422bda3e948f5cc5c2ea", | ||
"dependentChangeType": "patch", | ||
"date": "2020-03-23T22:44:43.124Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters