diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-03 17:13:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-06 08:26:14 +0100 |
commit | f8360396ffabd2f95e9ece9c5755173bae0114b6 (patch) | |
tree | 83467f70bb5d5c2faa61c45e1d87b538c6c8fe5e /scripts/setup/cli.sh | |
parent | cea093bca5b9d311b5c1d0539d53e965c901015b (diff) | |
download | PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.tar.gz PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.tar.zst PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.zip |
Stop using tsconfig register
Prefer to replace paths at compile time
Diffstat (limited to 'scripts/setup/cli.sh')
-rwxr-xr-x | scripts/setup/cli.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/setup/cli.sh b/scripts/setup/cli.sh index d0ad2ec5f..f84260f23 100755 --- a/scripts/setup/cli.sh +++ b/scripts/setup/cli.sh | |||
@@ -9,8 +9,10 @@ rm -rf ./dist/server/tools/ | |||
9 | ( | 9 | ( |
10 | cd ./server/tools | 10 | cd ./server/tools |
11 | yarn install --pure-lockfile | 11 | yarn install --pure-lockfile |
12 | ../../node_modules/.bin/tsc --build --verbose | ||
12 | ) | 13 | ) |
13 | 14 | ||
14 | npm run tsc -- --build --verbose ./server/tools/tsconfig.json | ||
15 | cp -r "./server/tools/node_modules" "./dist/server/tools" | 15 | cp -r "./server/tools/node_modules" "./dist/server/tools" |
16 | cp "./tsconfig.json" "./dist" | 16 | |
17 | npm run resolve-tspaths:cli | ||
18 | npm run resolve-tspaths:server | ||