Fix monorepo package versions to version published with release#41958
Merged
lunaleaps merged 1 commit into0.73-stablefrom Dec 28, 2023
Merged
Fix monorepo package versions to version published with release#41958lunaleaps merged 1 commit into0.73-stablefrom
lunaleaps merged 1 commit into0.73-stablefrom
Conversation
Contributor
|
headsup, I don't think this will work by itself, the scripts that handle the monorepo packages bumping and alignment might be set to always add the |
Contributor
Author
They don't, I verified. Only if there is a ^ prefix |
e6c3b59 to
62c733b
Compare
7 tasks
Base commit: c75abef |
facebook-github-bot
pushed a commit
that referenced
this pull request
Dec 28, 2023
Summary: See #41929 for an issue on multiple monorepo packages being installed. The reason is that `*` resolves to whatever is tagged `latest` on npm. We still need to fix the fact that our monorepo publish script will update the latest tag everytime we publish. For now, we should remove these from `main` and we will also update this in the 0.73 release branch. I've left the two peer dependencies on `react-native` to keep at `*`. ``` virtualized-lists/package.json 30: "react-native": "*" rn-tester/package.json 32: "react-native": "*" ``` As a peer-dependency this won't be a problem in terms of installing a second `react-native`. I thought about updating these to `nightly`, but that would install multiple nightly react-natives as the tag will be updated with each nightly release. I think for now this is fine and something we can revisit. Things left to do [ ] Fix monorepo publish script to not update `--latest` [ ] Remove ^ dependencies on monorepo packages: #41958 [ ] Re-evaluate how we bump and align monorepo packages when we cut a release branch. I forget if we manually update this when we cut or if there is a script. We may want to change the script and have `main` dependencies point to some fake version like `1000.0.0` and only update these on nightly publishes. Regardless, this will need some discussion. ## Changelog: [GENERAL] [CHANGED] - Be explicit about what monorepo versions we are using Pull Request resolved: #42081 Test Plan: N/A Reviewed By: cortinico, cipolleschi Differential Revision: D52435234 Pulled By: lunaleaps fbshipit-source-id: 67da029d2b637e3997c12c21fe2a9ab9bc344399
62c733b to
fd1a34b
Compare
This was referenced Feb 29, 2024
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
As a step of releasing React Native, any picks that change monorepo packages will also be bumped and published.
We've been using patch ranges in
react-native. The issue is that we don't currently support backwards compatibility, or it's not something we have process for. Given this, I'm inclined to remove the range dependency for all monorepo packages.I wasn't sure if this would be an issue so creating a PR here first. Also not sure the extent of what packages should be affected. Creating this PR more as a discussion point
Changelog:
[GENERAL] [CHANGED] - Remove patch range dependencies for all our monorepo packages.
Test Plan:
n/a