Skip to content

[eas-cli] Use production mode for Expo Updates commands - #4229

Open
ramonclaudio wants to merge 6 commits into
@ramonclaudio/dvt-119-eas-config-mode-handofffrom
@ramonclaudio/dvt-119-eas-cli-env-mode
Open

[eas-cli] Use production mode for Expo Updates commands#4229
ramonclaudio wants to merge 6 commits into
@ramonclaudio/dvt-119-eas-config-mode-handofffrom
@ramonclaudio/dvt-119-eas-cli-env-mode

Conversation

@ramonclaudio

@ramonclaudio ramonclaudio commented Aug 19, 2026

Copy link
Copy Markdown
Member

Stacked on #4180.

Why

EAS CLI can use an existing NODE_ENV when it resolves the runtime version or syncs Expo Updates config, which can make it load different env files for the same build. EAS CLI can also pass dotenv values loaded by a parent process to Expo Updates, which can make Expo Updates reuse values from a different mode.

How

I updated the Expo Updates commands to use production mode for runtime version resolution and Android and iOS config sync, and kept the original EAS CLI env unchanged. EAS CLI still supports Node 20.0.0, but @expo/env v2.5.0 requires Node 20.12.0, so I added the inherited dotenv cleanup locally for now.

Test Plan

Tests and package checks pass.

@linear-code

linear-code Bot commented Aug 19, 2026

Copy link
Copy Markdown

DVT-119

@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.88%. Comparing base (df98b5f) to head (743749d).

Files with missing lines Patch % Lines
packages/eas-cli/src/utils/originalEnv.ts 85.72% 3 Missing ⚠️
Additional details and impacted files
@@                                Coverage Diff                                @@
##           @ramonclaudio/dvt-119-eas-config-mode-handoff    #4229      +/-   ##
=================================================================================
+ Coverage                                          63.86%   63.88%   +0.03%     
=================================================================================
  Files                                               1032     1033       +1     
  Lines                                              47511    47535      +24     
  Branches                                            9993     9999       +6     
=================================================================================
+ Hits                                               30338    30365      +27     
+ Misses                                             17072    17069       -3     
  Partials                                             101      101              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ramonclaudio
ramonclaudio force-pushed the @ramonclaudio/dvt-119-eas-cli-env-mode branch from bd26e60 to 5edf5bf Compare August 19, 2026 18:52
@ramonclaudio
ramonclaudio marked this pull request as ready for review August 19, 2026 19:23
@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
packages/eas-cli/** @douglowder
packages/eas-cli/src/update/** @wschurman, @quinlanj

Generated by CodeMention

Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead.

@ramonclaudio
ramonclaudio marked this pull request as draft August 19, 2026 21:34
@ramonclaudio
ramonclaudio force-pushed the @ramonclaudio/dvt-119-eas-cli-env-mode branch from 77ab8a7 to 743749d Compare August 21, 2026 14:20
@github-actions

Copy link
Copy Markdown

✅ Thank you for adding the changelog entry!

@ramonclaudio

ramonclaudio commented Aug 21, 2026

Copy link
Copy Markdown
Member Author

@expo-bot verify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant