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

add better warning when prebuilding in non-interactive mode #4456

Merged
merged 1 commit into from
Aug 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/expo-cli/src/commands/eject/clearNativeFolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ export async function promptToClearMalformedNativeProjectsAsync(
initial: true,
}))
) {
if (isNonInteractive()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unclear if any changes landed here will be published, I recommend opening here https://github.com/expo/expo/blob/main/packages/%40expo/cli/src/prebuild/clearNativeFolder.ts

Log.warn(`${message}, project files will be cleared and reinitialized.`);
}
await clearNativeFolder(projectRoot, platforms);
} else {
// Warn the user that the process may fail.
Expand Down