Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(cli): avoid changing required dependency versions when prebuilding #23146

Merged
merged 3 commits into from Jun 28, 2023

Conversation

byCedric
Copy link
Member

Why

In the past, we've had issues with bugfixes and minor bumps causing issues in user projects, without user knowledge of these bumps.

How

Instead of overwriting, the user is prompted with a warning that they arent using the recommended versions. This can be resolved with expo install --fix before prebuilding.

Test Plan

  • $ yarn create expo ./test
  • Downgrade (patch or minor) any of these packages:
    • expo, expo-splash-screen, react, or react-native
  • $ yarn expo prebuild
  • This command should warn you that you are not using the recommended versions. It should NOT change these versions.

Checklist

Instead of overwriting, the user is prompted with a warning that they arent using the recommended versions. This can be resolved with `expo install --fix` before prebuilding.
@byCedric byCedric requested a review from brentvatne June 27, 2023 19:46
@byCedric byCedric requested a review from EvanBacon as a code owner June 27, 2023 19:46
@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Jun 27, 2023
@byCedric byCedric changed the title refactor(cli): only add missing required dependencies when prebuilding refactor(cli): Avoid changing required dependency versions when prebuilding Jun 27, 2023
@byCedric byCedric force-pushed the @bycedric/cli/only-add-required-dependencies branch from fe62ad0 to cafba40 Compare June 27, 2023 19:49
@byCedric byCedric changed the title refactor(cli): Avoid changing required dependency versions when prebuilding refactor(cli): avoid changing required dependency versions when prebuilding Jun 27, 2023
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jun 27, 2023
@byCedric byCedric merged commit 7e91778 into main Jun 28, 2023
5 checks passed
@byCedric byCedric deleted the @bycedric/cli/only-add-required-dependencies branch June 28, 2023 07:23
byCedric added a commit that referenced this pull request Jun 28, 2023
…ilding (#23146)

# Why

In the past, we've had issues with bugfixes and minor bumps causing
issues in user projects, without user knowledge of these bumps.

# How

Instead of overwriting, the user is prompted with a warning that they
arent using the recommended versions. This can be resolved with `expo
install --fix` before prebuilding.

# Test Plan

- `$ yarn create expo ./test`
- Downgrade (patch or minor) any of these packages:
  - `expo`, `expo-splash-screen`, `react`, or `react-native`
- `$ yarn expo prebuild`
- This command should warn you that you are not using the recommended
versions. It should NOT change these versions.

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@brentvatne brentvatne added the published Changes from the PR have been published to npm label Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants