diff options
author | Chocobozzz <me@florianbigard.com> | 2023-08-17 09:24:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-08-17 09:24:45 +0200 |
commit | 0632cdda04cdc3672de9a71b16c67267e420953f (patch) | |
tree | 913429bb878478928b26938d59d1431954697977 | |
parent | c380e3928517eb5311b38cf257816642617d7a33 (diff) | |
download | PeerTube-0632cdda04cdc3672de9a71b16c67267e420953f.tar.gz PeerTube-0632cdda04cdc3672de9a71b16c67267e420953f.tar.zst PeerTube-0632cdda04cdc3672de9a71b16c67267e420953f.zip |
Fix build
-rwxr-xr-x | scripts/build/index.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/build/index.sh b/scripts/build/index.sh index bf6ad48eb..09e6f11ad 100755 --- a/scripts/build/index.sh +++ b/scripts/build/index.sh | |||
@@ -2,12 +2,11 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | npm run build:server | ||
6 | |||
7 | # Angular does not support project references, it's the reason why we can't builds concurrently | ||
5 | if [ ! -z ${1+x} ]; then | 8 | if [ ! -z ${1+x} ]; then |
6 | clientCommand="npm run build:client -- $1" | 9 | npm run build:client -- $1 |
7 | else | 10 | else |
8 | clientCommand="npm run build:client" | 11 | npm run build:client |
9 | fi | 12 | fi |
10 | |||
11 | npm run concurrently -- --raw \ | ||
12 | "$clientCommand" \ | ||
13 | "npm run build:server" | ||