Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
fix(expo-cli): return first of allowed types in non interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Apr 11, 2020
1 parent d60224f commit a15af6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/expo-cli/src/commands/build/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export async function askBuildType<T extends string>(
}
}

if (!typeFromFlag && program.nonInteractive) {
return allowedTypes[0];
}

const { answer } = await prompt({
type: 'list',
name: 'answer',
Expand Down

0 comments on commit a15af6b

Please sign in to comment.