aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/setup/cli.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-03 17:13:11 +0100
committerChocobozzz <me@florianbigard.com>2022-01-06 08:26:14 +0100
commitf8360396ffabd2f95e9ece9c5755173bae0114b6 (patch)
tree83467f70bb5d5c2faa61c45e1d87b538c6c8fe5e /scripts/setup/cli.sh
parentcea093bca5b9d311b5c1d0539d53e965c901015b (diff)
downloadPeerTube-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-xscripts/setup/cli.sh6
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
14npm run tsc -- --build --verbose ./server/tools/tsconfig.json
15cp -r "./server/tools/node_modules" "./dist/server/tools" 15cp -r "./server/tools/node_modules" "./dist/server/tools"
16cp "./tsconfig.json" "./dist" 16
17npm run resolve-tspaths:cli
18npm run resolve-tspaths:server