Skip to content

Commit

Permalink
Run library builds for PNPM from a seperate script
Browse files Browse the repository at this point in the history
Closes keycloak#35599

Signed-off-by: Jon Koops <[email protected]>
  • Loading branch information
jonkoops committed Dec 4, 2024
1 parent 03b2577 commit dc76662
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
8 changes: 8 additions & 0 deletions js/apps/account-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"scripts": {
"dev": "wireit",
"build": "wireit",
"build-lib": "wireit",
"preview": "wireit",
"lint": "wireit",
"test": "wireit"
Expand Down Expand Up @@ -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": [
Expand Down
5 changes: 1 addition & 4 deletions js/apps/account-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@
<goal>pnpm</goal>
</goals>
<configuration>
<arguments>build</arguments>
<environmentVariables>
<LIB>true</LIB>
</environmentVariables>
<arguments>build-lib</arguments>
</configuration>
</execution>
<execution>
Expand Down
8 changes: 8 additions & 0 deletions js/apps/admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"scripts": {
"dev": "wireit",
"build": "wireit",
"build-lib": "wireit",
"preview": "wireit",
"lint": "wireit",
"test": "wireit",
Expand Down Expand Up @@ -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": [
Expand Down
5 changes: 1 addition & 4 deletions js/apps/admin-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@
<goal>pnpm</goal>
</goals>
<configuration>
<arguments>build</arguments>
<environmentVariables>
<LIB>true</LIB>
</environmentVariables>
<arguments>build-lib</arguments>
</configuration>
</execution>
<execution>
Expand Down

0 comments on commit dc76662

Please sign in to comment.