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 Jan 25, 2020
1 parent 7638f11 commit 620e7af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/expo-cli/src/commands/build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ async function askBuildType(typeFromFlag, availableTypes) {
}
}

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

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

0 comments on commit 620e7af

Please sign in to comment.