Skip to content

Commit 25376af

Browse files
committed
chore: modify build script to allow building only horizon packages
Signed-off-by: Tomás Migone <[email protected]>
1 parent 010277e commit 25376af

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

scripts/build

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
#!/bin/bash
22

3-
# List of packages to build - order matters!
4-
packages=(
3+
BUILD_HORIZON_ONLY=${BUILD_HORIZON_ONLY:-false}
4+
5+
# List packages to build - order matters!
6+
horizon_packages=(
7+
"packages/contracts"
8+
"packages/horizon"
9+
"packages/subgraph-service"
10+
)
11+
12+
all_packages=(
513
"packages/eslint-graph-config"
614
# "packages/solhint-graph-config" -- disabled since it doesn't have a build script
715
# "packages/solhint-plugin-graph" -- disabled since it doesn't have a build script
@@ -14,6 +22,12 @@ packages=(
1422
"packages/token-distribution"
1523
)
1624

25+
if [ "$BUILD_HORIZON_ONLY" = "true" ]; then
26+
packages=("${horizon_packages[@]}")
27+
else
28+
packages=("${all_packages[@]}")
29+
fi
30+
1731
for package in "${packages[@]}"; do
1832
echo -e "\n\n==== Building $package..."
1933

0 commit comments

Comments
 (0)