From bf44f0c583d4438e875308a91c2ea5a2a569e72b Mon Sep 17 00:00:00 2001 From: Wojciech Kozyra Date: Mon, 1 Aug 2022 12:07:52 +0200 Subject: [PATCH] chore(expo-cli): add better warning when prebuilding in non-interactive mode (#4456) --- packages/expo-cli/src/commands/eject/clearNativeFolder.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/expo-cli/src/commands/eject/clearNativeFolder.ts b/packages/expo-cli/src/commands/eject/clearNativeFolder.ts index 971b9b8ae3..a312936d57 100644 --- a/packages/expo-cli/src/commands/eject/clearNativeFolder.ts +++ b/packages/expo-cli/src/commands/eject/clearNativeFolder.ts @@ -104,6 +104,9 @@ export async function promptToClearMalformedNativeProjectsAsync( initial: true, })) ) { + if (isNonInteractive()) { + Log.warn(`${message}, project files will be cleared and reinitialized.`); + } await clearNativeFolder(projectRoot, platforms); } else { // Warn the user that the process may fail.