From ff20b0a844e5a3f349c38505cb90f885ac81452b Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Sat, 11 Jan 2025 16:08:17 +0100 Subject: [PATCH] Avoid re-building when shared files from SPAs are changed --- src/bin/start-keycloak/start-keycloak.ts | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/bin/start-keycloak/start-keycloak.ts b/src/bin/start-keycloak/start-keycloak.ts index dc60c1ff..17def692 100644 --- a/src/bin/start-keycloak/start-keycloak.ts +++ b/src/bin/start-keycloak/start-keycloak.ts @@ -781,6 +781,40 @@ export async function command(params: { return; } + + ignore_patternfly: { + if ( + !isInside({ + dirPath: pathJoin( + buildContext.themeSrcDirPath, + "shared", + "@patternfly" + ), + filePath + }) + ) { + break ignore_patternfly; + } + + return; + } + + ignore_keycloak_ui_shared: { + if ( + !isInside({ + dirPath: pathJoin( + buildContext.themeSrcDirPath, + "shared", + "keycloak-ui-shared" + ), + filePath + }) + ) { + break ignore_keycloak_ui_shared; + } + + return; + } } console.log(`Detected changes in ${filePath}`);