From 620e7af2b90dffb63f006368f8ca8bf03765174e Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Sat, 25 Jan 2020 22:41:27 +0000 Subject: [PATCH] fix(expo-cli): return first of allowed types in non interactive mode --- packages/expo-cli/src/commands/build/utils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/expo-cli/src/commands/build/utils.js b/packages/expo-cli/src/commands/build/utils.js index 96691c905d..6fab6526f9 100644 --- a/packages/expo-cli/src/commands/build/utils.js +++ b/packages/expo-cli/src/commands/build/utils.js @@ -34,6 +34,10 @@ async function askBuildType(typeFromFlag, availableTypes) { } } + if (!typeFromFlag && program.nonInteractive) { + return allowedTypes[0]; + } + const { answer } = await prompt({ type: 'list', name: 'answer',