Skip to content

Commit

Permalink
[eas-cli] don't ask user to install dev client if running in non iner…
Browse files Browse the repository at this point in the history
…active mode
  • Loading branch information
szdziedzic committed Nov 16, 2023
1 parent a541a2e commit 2a9ab58
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/eas-cli/src/build/utils/devClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 2a9ab58

Please sign in to comment.