[eas-cli] add clear cache option to updates #1839
Merged
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.
Why
The
clear-cache
option to remove the metro bundler cache exists foreas build
and for the Classic Updatesexpo publish
command, but it was overlooked foreas update
. This PR adds the flag toeas update
to bring it to parity with our other commands.Fixes #1123 . Also a bunch of other users reported issues with
eas update
that I suspect would be fixed by clearing the metro bundler too.How
eas update
relies on the expo cli'sexpo export
command to generate it's bundle. This PR plumbs down theclear-cache
flag to theexpo export
command. This should work with all released versions ofexpo export
since support for theclear
flag has always existed.Test Plan
eas update --clear-cache