File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
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=(
5
13
" packages/eslint-graph-config"
6
14
# "packages/solhint-graph-config" -- disabled since it doesn't have a build script
7
15
# "packages/solhint-plugin-graph" -- disabled since it doesn't have a build script
@@ -14,6 +22,12 @@ packages=(
14
22
" packages/token-distribution"
15
23
)
16
24
25
+ if [ " $BUILD_HORIZON_ONLY " = " true" ]; then
26
+ packages=(" ${horizon_packages[@]} " )
27
+ else
28
+ packages=(" ${all_packages[@]} " )
29
+ fi
30
+
17
31
for package in " ${packages[@]} " ; do
18
32
echo -e " \n\n==== Building $package ..."
19
33
You can’t perform that action at this time.
0 commit comments