diff --git a/js/apps/account-ui/package.json b/js/apps/account-ui/package.json index b6c37b3fb664..81afd3dcc6df 100644 --- a/js/apps/account-ui/package.json +++ b/js/apps/account-ui/package.json @@ -19,6 +19,7 @@ "scripts": { "dev": "wireit", "build": "wireit", + "build-lib": "wireit", "preview": "wireit", "lint": "wireit", "test": "wireit" @@ -73,6 +74,13 @@ "../../libs/keycloak-admin-client:build" ] }, + "build-lib": { + "command": "LIB=true vite build", + "dependencies": [ + "../../libs/ui-shared:build", + "../../libs/keycloak-admin-client:build" + ] + }, "lint": { "command": "eslint .", "dependencies": [ diff --git a/js/apps/account-ui/pom.xml b/js/apps/account-ui/pom.xml index 1049a920db36..f4e6756b058e 100644 --- a/js/apps/account-ui/pom.xml +++ b/js/apps/account-ui/pom.xml @@ -63,10 +63,7 @@ pnpm - build - - true - + build-lib diff --git a/js/apps/admin-ui/package.json b/js/apps/admin-ui/package.json index 94092db14229..c7cee8641459 100644 --- a/js/apps/admin-ui/package.json +++ b/js/apps/admin-ui/package.json @@ -19,6 +19,7 @@ "scripts": { "dev": "wireit", "build": "wireit", + "build-lib": "wireit", "preview": "wireit", "lint": "wireit", "test": "wireit", @@ -49,6 +50,13 @@ "../../libs/keycloak-admin-client:build" ] }, + "build-lib": { + "command": "LIB=true vite build", + "dependencies": [ + "../../libs/ui-shared:build", + "../../libs/keycloak-admin-client:build" + ] + }, "lint": { "command": "eslint .", "dependencies": [ diff --git a/js/apps/admin-ui/pom.xml b/js/apps/admin-ui/pom.xml index a1b0d4fe4eaf..e32f32b9c681 100644 --- a/js/apps/admin-ui/pom.xml +++ b/js/apps/admin-ui/pom.xml @@ -63,10 +63,7 @@ pnpm - build - - true - + build-lib