From 8257ee615ead9e0f347ba8935c93272c2918cb63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lux?= Date: Fri, 6 Jan 2023 23:09:20 +0100 Subject: [PATCH] feat(expo): add clean option to prebuild executor --- 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 a83d73e05eb04..69820d5fa2115 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 f2c8b45dceaaa..f2e9310e62325 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.",