Add an `eas build:repack` command
K
Kyler Jensen
Summary
Please add an
eas build:repack
command that takes an existing EAS build and repacks it with an updated JavaScript bundle and assets, without a full native rebuild.Motivation
When only JavaScript or assets have changed, a full native build is slow and uses build credits needlessly. EAS already supports repacking: the
eas/repack
step function (built on @expo/repack-app
) is available in custom builds and workflows, and eas go
uses it internally. But there's no direct CLI entry point. Today you have to write a custom workflow to use it, while eas build:resign
already gives the similar re-signing flow a first-class command.Proposed behavior
eas build:repack --id <build-id> [--platform android|ios] [--profile <profile>] [--wait]
- Takes a source build by ID, or picks one interactively like build:resigndoes.
- Builds the JS bundle and assets from the current project and repacks them into the source binary.
- Re-signs with the credentials from the selected build profile.
- Passes through the options the step already has, such as --embed-bundle-assets,--js-bundle-onlyand the iOS entitlements and signing-backend choices.
- Produces a new build entry and prints its URL. --waitblocks until it finishes.
Alternatives considered
- A custom workflow with the eas/repackstep. It works, but it's a lot of setup for a common task.
- A full eas build. It's much slower when no native code changed.