aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/dev
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/dev
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/dev')
-rwxr-xr-xscripts/dev/cli.sh3
-rwxr-xr-xscripts/dev/server.sh11
2 files changed, 6 insertions, 8 deletions
diff --git a/scripts/dev/cli.sh b/scripts/dev/cli.sh
index 4bf4808b8..327792a19 100755
--- a/scripts/dev/cli.sh
+++ b/scripts/dev/cli.sh
@@ -12,4 +12,5 @@ rm -rf ./dist/server/tools/
12mkdir -p "./dist/server/tools" 12mkdir -p "./dist/server/tools"
13cp -r "./server/tools/node_modules" "./dist/server/tools" 13cp -r "./server/tools/node_modules" "./dist/server/tools"
14 14
15npm run tsc -- --watch --sourceMap --project ./server/tools/tsconfig.json 15cd ./server/tools
16../../node_modules/.bin/tsc-watch --build --verbose --onSuccess 'sh -c "cd ../../ && npm run resolve-tspaths:all"'
diff --git a/scripts/dev/server.sh b/scripts/dev/server.sh
index 468af0a56..9dae43a63 100755
--- a/scripts/dev/server.sh
+++ b/scripts/dev/server.sh
@@ -14,15 +14,12 @@ mkdir -p "./client/dist"
14rm -rf "./client/dist/locale" 14rm -rf "./client/dist/locale"
15cp -r "./client/src/locale" "./client/dist/locale" 15cp -r "./client/src/locale" "./client/dist/locale"
16 16
17rm -rf "./dist" 17mkdir -p "./dist/server/lib"
18
19mkdir "./dist"
20cp "./tsconfig.json" "./dist"
21 18
22npm run tsc -- -b -v --incremental 19npm run tsc -- -b -v --incremental
20npm run resolve-tspaths:server
21
23cp -r ./server/static ./server/assets ./dist/server 22cp -r ./server/static ./server/assets ./dist/server
24cp -r "./server/lib/emails" "./dist/server/lib" 23cp -r "./server/lib/emails" "./dist/server/lib"
25 24
26NODE_ENV=test node node_modules/.bin/concurrently -k \ 25./node_modules/.bin/tsc-watch --build --preserveWatchOutput --verbose --onSuccess 'sh -c "npm run resolve-tspaths:server && NODE_ENV=test node dist/server"'
27 "node_modules/.bin/nodemon --enable-source-maps --delay 1 --watch ./dist dist/server" \
28 "node_modules/.bin/tsc -b -w --preserveWatchOutput"