aboutsummaryrefslogblamecommitdiffhomepage
path: root/scripts/build/server.sh
blob: 865bdd095d3ec593691870975af48b119cad5553 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
           

       


             




                                                     
                                                         
                                               
#!/bin/bash

set -eu

rm -rf ./dist

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"