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

       
 
                               
 
                                                 

                              


                                                                     
#!/bin/bash

set -eu

rm -rf ./dist ./packages/*/dist

npm run tsc --  -b --verbose server/tsconfig.json
npm run resolve-tspaths:server

cp -r "./server/server/static" "./server/server/assets" ./dist/server
cp -r "./server/server/lib/emails" "./dist/server/lib"
cp "./server/scripts/upgrade.sh" "./dist/scripts"