]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/build/server.sh
Move typescript utils in its own directory
[github/Chocobozzz/PeerTube.git] / scripts / build / server.sh
index 8a1d4ca9a0ba94ec54a989170e475936980958c5..865bdd095d3ec593691870975af48b119cad5553 100755 (executable)
@@ -1,8 +1,13 @@
-#!/bin/sh
+#!/bin/bash
 
 set -eu
 
 rm -rf ./dist
 
-npm run tsc
-cp -r "./server/static" "./dist/server"
+npm run tsc -- -b --verbose
+cp "./tsconfig.base.json" "./tsconfig.json" "./dist/"
+cp "./scripts/tsconfig.json" "./dist/scripts/"
+cp "./server/tsconfig.json" "./dist/server/"
+cp "./shared/tsconfig.json" "./dist/shared/"
+cp -r "./server/static" "./server/assets" "./dist/server"
+cp -r "./server/lib/emails" "./dist/server/lib"