Skip to content

feat: add excludeReBuildModules option to configuration and scheme #9097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
70 changes: 70 additions & 0 deletions packages/app-builder-lib/scheme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1825,6 +1825,20 @@
"string"
]
},
"excludeReBuildModules": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "The modules to exclude from the rebuild."
},
"executableArgs": {
"anyOf": [
{
Expand Down Expand Up @@ -2527,6 +2541,20 @@
"string"
]
},
"excludeReBuildModules": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "The modules to exclude from the rebuild."
},
"executableName": {
"description": "The executable name. Defaults to `productName`.",
"type": [
Expand Down Expand Up @@ -3159,6 +3187,20 @@
"string"
]
},
"excludeReBuildModules": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "The modules to exclude from the rebuild."
},
"executableName": {
"description": "The executable name. Defaults to `productName`.",
"type": [
Expand Down Expand Up @@ -6381,6 +6423,20 @@
"string"
]
},
"excludeReBuildModules": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "The modules to exclude from the rebuild."
},
"executableName": {
"description": "The executable name. Defaults to `productName`.",
"type": [
Expand Down Expand Up @@ -7153,6 +7209,20 @@
"string"
]
},
"excludeReBuildModules": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "The modules to exclude from the rebuild."
},
"executableName": {
"description": "The executable name. Defaults to `productName`.",
"type": [
Expand Down
5 changes: 5 additions & 0 deletions packages/app-builder-lib/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ export interface CommonConfiguration {
* [Experimental] Configuration for concurrent builds.
*/
readonly concurrency?: Concurrency | null

/**
* The modules to exclude from the rebuild.
*/
readonly excludeReBuildModules?: Array<string> | null
}

export interface Configuration extends CommonConfiguration, PlatformSpecificBuildOptions, Hooks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ export interface PlatformSpecificBuildOptions extends TargetSpecificOptions, Fil
cscKeyPassword?: string | null

readonly defaultArch?: string

/**
* The modules to exclude from the rebuild.
*/
readonly excludeReBuildModules?: Array<string> | null
}

export interface ReleaseInfo {
Expand Down
1 change: 1 addition & 0 deletions packages/app-builder-lib/src/util/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export async function rebuild(config: Configuration, { appDir, projectDir }: Dir
arch,
platform,
buildFromSource,
ignoreModules: config.excludeReBuildModules || undefined,
projectRootPath: projectDir,
mode: (config.nativeRebuilder as RebuildMode) || "sequential",
disablePreGypCopy: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"name": "TestApp",
"version": "1.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "TestApp",
"version": "1.1.0",
"license": "MIT",
"dependencies": {
"debug": "3.1.0",
"selection-hook": "0.9.9"
}
},
"node_modules/debug": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"license": "MIT",
"dependencies": {
"ms": "2.0.0"
}
},
"node_modules/ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
"license": "MIT"
},
"node_modules/node-gyp-build": {
"version": "4.8.4",
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz",
"integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==",
"license": "MIT",
"bin": {
"node-gyp-build": "bin.js",
"node-gyp-build-optional": "optional.js",
"node-gyp-build-test": "build-test.js"
}
},
"node_modules/selection-hook": {
"version": "0.9.9",
"resolved": "https://registry.npmjs.org/selection-hook/-/selection-hook-0.9.9.tgz",
"integrity": "sha512-CZfyBpPnq0Qx0uyCQxeZJxtiikOo83sHJSsdZJ8DgJs6OOf9yBUTgGoV/H304UDsXVPUQe6Oc1QUN860+S2pow==",
"hasInstallScript": true,
"license": "MIT",
"os": [
"win32"
],
"dependencies": {
"node-gyp-build": "^4.7.1"
},
"engines": {
"node": ">=18.0.0"
}
}
}
}
Loading