fix(eas): use 'bun x' instead of 'bunx' in custom build configs
Some checks failed
🏗️ Build Apps / 🤖 Build Android APK (Phone) (push) Has been cancelled
🏗️ Build Apps / 🤖 Build Android APK (TV) (push) Has been cancelled
🏗️ Build Apps / 🍎 Build iOS IPA (Phone) (push) Has been cancelled
🏗️ Build Apps / 🍎 Build iOS IPA (Phone - Unsigned) (push) Has been cancelled
🏗️ Build Apps / 🍎 Build tvOS IPA (push) Has been cancelled
🏗️ Build Apps / 🍎 Build tvOS IPA (Unsigned) (push) Has been cancelled
🔒 Lockfile Consistency Check / 🔍 Check bun.lock and package.json consistency (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (actions) (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (javascript-typescript) (push) Has been cancelled
🏷️🔀Merge Conflict Labeler / 🏷️ Labeling Merge Conflicts (push) Has been cancelled
🌐 Translation Sync / sync-translations (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Vulnerable Dependencies (push) Has been cancelled
🚦 Security & Quality Gate / 🚑 Expo Doctor Check (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (check) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (format) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (i18n:check) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (lint) (push) Has been cancelled
🛡️ Trivy Security Scan / 🔎 Filesystem scan (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (typecheck) (push) Has been cancelled

The latest EAS Android build image no longer ships the bunx shim,
so 'bunx expo prebuild' fails with exit 127 (command not found).
'bun x' is bun's built-in equivalent and only requires the bun
binary itself, which the image provides.

Claude-Session: https://claude.ai/code/session_01GVcoCm9p5pLBXS9v8jDkHp
This commit is contained in:
Fredrik Burmester
2026-07-19 11:04:30 +02:00
parent 41e2dc3b81
commit c00d2f050e
4 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ build:
- run:
name: Prebuild (Android, bun)
command: bunx expo prebuild --platform android --no-install
command: bun x expo prebuild --platform android --no-install
- eas/configure_android_version
- eas/inject_android_credentials

View File

@@ -15,7 +15,7 @@ build:
# EXPO_TV=1 comes from the profile env, so prebuild targets Android TV.
- run:
name: Prebuild (Android TV, bun)
command: bunx expo prebuild --platform android --no-install
command: bun x expo prebuild --platform android --no-install
- eas/configure_android_version
- eas/inject_android_credentials

View File

@@ -18,10 +18,10 @@ build:
command: bun install --frozen-lockfile
# android/ is gitignored, so generate native code fresh. --no-install
# because deps are already installed above; bunx keeps it on bun.
# because deps are already installed above; bun x keeps it on bun.
- run:
name: Prebuild (Android, bun)
command: bunx expo prebuild --platform android --no-install
command: bun x expo prebuild --platform android --no-install
# Applies the EAS-resolved remote versionCode/versionName (autoIncrement
# in eas.json) into the freshly prebuilt android/ project.

View File

@@ -26,7 +26,7 @@ build:
# skips JS + pod install; we install pods explicitly below with bun deps.
- run:
name: Prebuild (iOS/tvOS, bun)
command: bunx expo prebuild --platform ios --no-install
command: bun x expo prebuild --platform ios --no-install
- run:
name: Install CocoaPods