diff options
author | Chocobozzz <me@florianbigard.com> | 2019-05-24 15:48:48 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-05-27 14:56:06 +0200 |
commit | 7e9d3f259d5dac0d17ca4f3d6844e8cfbb7e33d1 (patch) | |
tree | fb3b258dd55bcf2d85a3cf507ea0bb9e6d2b9fc2 /scripts/setup/cli.sh | |
parent | ff747e79400f43de79df578c14d9b81ff55de84b (diff) | |
download | PeerTube-7e9d3f259d5dac0d17ca4f3d6844e8cfbb7e33d1.tar.gz PeerTube-7e9d3f259d5dac0d17ca4f3d6844e8cfbb7e33d1.tar.zst PeerTube-7e9d3f259d5dac0d17ca4f3d6844e8cfbb7e33d1.zip |
Move CLI dependencies in their own package.json
Diffstat (limited to 'scripts/setup/cli.sh')
-rwxr-xr-x | scripts/setup/cli.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/setup/cli.sh b/scripts/setup/cli.sh new file mode 100755 index 000000000..94ca3c441 --- /dev/null +++ b/scripts/setup/cli.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | NOCLIENT=1 yarn install --pure-lockfile | ||
6 | |||
7 | rm -rf ./dist/server/tools/ | ||
8 | |||
9 | ( | ||
10 | cd ./server/tools | ||
11 | yarn install --pure-lockfile | ||
12 | ) | ||
13 | |||
14 | npm run tsc -- --build ./server/tools/tsconfig.json | ||
15 | |||
16 | cp -r "./server/tools/node_modules" "./dist/server/tools" | ||