server.sh 310 B

12345678910111213
  1. #!/bin/bash
  2. set -eu
  3. if [ -z ${1+x} ] || [ "$1" != "--incremental" ]; then
  4. rm -rf ./dist ./packages/*/dist
  5. fi
  6. npm run tsc -- -b --verbose server/tsconfig.json
  7. npm run resolve-tspaths:server
  8. cp -r "./server/core/static" "./server/core/assets" ./dist/core
  9. cp "./server/scripts/upgrade.sh" "./dist/scripts"