[expo-updates] Add expo-updates cli fingerprint:generate command #27119
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
We need the
@expo/fingerprint
package version to match that of expo-updates (the fingerprint generated during the build from #26901) when we generate a fingerprint ineas-cli
for theeas update
command. The only way I can think to do this is make a command inexpo-updates
thateas-cli
calls into to get the version of@expo/fingerpring
being used by the project (and build process). This is similar to how we callnpx expo
fromeas-cli
to get the correct versioned CLI.How
Add new command,
yarn expo-updates fingerprint:generate --platform ios
that just runs fingerprint. This has the secondary benefit of consolidating the workflow detection code to one place as well so there aren't any inconsistencies.Test Plan
yarn expo-updates fingerprint:generate --platform ios
see JSON fingerprint output stringified
Checklist
npx expo prebuild
& EAS Build (eg: updated a module plugin).