From fb49c7fb7d414723d18769a614818ddb9b557215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lux?= <39727257+remi2257@users.noreply.github.com> Date: Wed, 25 Jan 2023 17:31:33 +0100 Subject: [PATCH] feat(expo): add clean option to prebuild executor (#14212) (cherry picked from commit e8faab12e15f8b99b644e9765f69f0558399b482) --- docs/generated/packages/expo/executors/prebuild.json | 5 +++++ packages/expo/src/executors/prebuild/schema.d.ts | 1 + packages/expo/src/executors/prebuild/schema.json | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/docs/generated/packages/expo/executors/prebuild.json b/docs/generated/packages/expo/executors/prebuild.json index 9122b229c365d..6ae3bb8fc21ec 100644 --- a/docs/generated/packages/expo/executors/prebuild.json +++ b/docs/generated/packages/expo/executors/prebuild.json @@ -11,6 +11,11 @@ "description": "Create native iOS and Android project files for building natively.", "type": "object", "properties": { + "clean": { + "type": "boolean", + "description": "Delete the native folders and regenerate them before applying changes", + "default": false + }, "install": { "type": "boolean", "description": "Installing npm packages and CocoaPods.", diff --git a/packages/expo/src/executors/prebuild/schema.d.ts b/packages/expo/src/executors/prebuild/schema.d.ts index b0905612de511..2746fc4418af6 100644 --- a/packages/expo/src/executors/prebuild/schema.d.ts +++ b/packages/expo/src/executors/prebuild/schema.d.ts @@ -3,6 +3,7 @@ import { string } from 'yargs'; export interface ExpoPrebuildOptions { + clean: boolean; // default is false install: boolean; // default is true platform: 'all' | 'android' | 'ios'; // default is all template?: string; diff --git a/packages/expo/src/executors/prebuild/schema.json b/packages/expo/src/executors/prebuild/schema.json index 1325f3c34ae40..2fae20881bc25 100644 --- a/packages/expo/src/executors/prebuild/schema.json +++ b/packages/expo/src/executors/prebuild/schema.json @@ -8,6 +8,11 @@ "description": "Create native iOS and Android project files for building natively.", "type": "object", "properties": { + "clean": { + "type": "boolean", + "description": "Delete the native folders and regenerate them before applying changes", + "default": false + }, "install": { "type": "boolean", "description": "Installing npm packages and CocoaPods.",