]> 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 811da2154425093bf666f970e18ba90e33288eda..865bdd095d3ec593691870975af48b119cad5553 100755 (executable)
@@ -1,5 +1,13 @@
-#!/usr/bin/env sh
+#!/bin/bash
+
+set -eu
 
 rm -rf ./dist
 
-npm run tsc
+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"