diff --git a/CHANGELOG.md b/CHANGELOG.md index 33c14e319c..42c5826b33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ This is the log of notable changes to EAS CLI and related packages. ### ๐Ÿ› Bug fixes +- Don't ask a user to install the dev client if running in non-interactive mode. ([#2124](https://github.com/expo/eas-cli/pull/2124) by [@szdziedzic](https://github.com/szdziedzic)) + ### ๐Ÿงน Chores ## [5.9.0](https://github.com/expo/eas-cli/releases/tag/v5.9.0) - 2023-11-15 diff --git a/packages/eas-cli/src/build/utils/devClient.ts b/packages/eas-cli/src/build/utils/devClient.ts index 45ad523280..206c6d6a2a 100644 --- a/packages/eas-cli/src/build/utils/devClient.ts +++ b/packages/eas-cli/src/build/utils/devClient.ts @@ -57,6 +57,19 @@ export async function ensureExpoDevClientInstalledForDevClientBuildsAsync({ 'expo-dev-client' )} installed for your project.` ); + if (nonInteractive) { + Log.error(`You'll need to install ${chalk.bold('expo-dev-client')} manually.`); + Log.error( + learnMore('https://docs.expo.dev/clients/installation/', { + learnMoreMessage: 'See installation instructions on how to do it.', + dim: false, + }) + ); + Errors.error(`Install ${chalk.bold('expo-dev-client')} manually and try again later.`, { + exit: 1, + }); + } + const areAllManaged = workflowPerPlatformList.every(i => i === Workflow.MANAGED); if (areAllManaged) { const install = await confirmAsync({