Skip to content

Commit 147d86c

Browse files
committed
chore: netlify command tweak
1 parent db895fb commit 147d86c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
8181
"local-stack": "scripts/tmux-local-stack.sh",
8282
"changelog": "conventional-changelog --infile CHANGELOG.md --same-file --release-count 0 && prettier --write CHANGELOG.md",
8383
"postinstall": "yarn check-prerequisites; husky install",
84-
"reinstall": "YARN_CHECKSUM_BEHAVIOR=update yarn install --no-immutable"
84+
"reinstall": "YARN_CHECKSUM_BEHAVIOR=update yarn install --no-immutable",
85+
"build:web:ci": "yarn workspaces focus @kleros/kleros-v2-web && yarn workspaces foreach -Ap --include kleros-app --include contracts run build && yarn workspace @kleros/kleros-v2-web build-netlify",
86+
"build:web-devtools:ci": "yarn workspaces focus @kleros/kleros-v2-web-devtools && yarn workspaces foreach -Ap --include contracts run build && yarn workspace @kleros/kleros-v2-web-devtools build-netlify"
8587
},
8688
"alias": {
8789
"process": "process/browser.js",

web-devtools/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
},
4949
"dependencies": {
5050
"@kleros/kleros-sdk": "workspace:^",
51+
"@kleros/kleros-v2-contracts": "workspace:^",
5152
"@kleros/ui-components-library": "^2.20.0",
5253
"@tanstack/react-query": "^5.61.0",
5354
"@wagmi/connectors": "^5.5.0",

web/netlify.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ NETLIFY_YARN_WORKSPACES = "true"
66
YARN_ENABLE_GLOBAL_CACHE = "true"
77
# YARN_CACHE_FOLDER = "$HOME/.yarn_cache"
88
# YARN_VERSION = "3.2.0"
9+
910
[build]
10-
command = "yarn workspaces foreach -Rpt --from @kleros/kleros-v2-web install && yarn workspaces foreach -Ap --include @kleros/kleros-app --include @kleros/kleros-v2-contracts run build && yarn workspace @kleros/kleros-v2-web build-netlify"
11+
command = "yarn build:web:ci"
12+
1113
[functions]
1214
directory = "web/netlify/functions/"

0 commit comments

Comments
 (0)