diff --git a/scripts/watch/server.sh b/scripts/watch/server.sh index 8d8470954..2e3231865 100755 --- a/scripts/watch/server.sh +++ b/scripts/watch/server.sh @@ -12,6 +12,9 @@ rm -rf "./dist" mkdir "./dist" cp "./tsconfig.json" "./dist" +npm run tsc -- --incremental --sourceMap +cp -r ./server/static ./server/assets ./dist/server + NODE_ENV=test npm run concurrently -- -k \ - "npm run tsc -- --sourceMap && cp -r ./server/static ./server/assets ./dist/server && npm run nodemon -- --delay 2 --watch ./dist dist/server" \ - "npm run tsc -- --sourceMap --preserveWatchOutput -w" + "npm run nodemon -- --delay 1 --watch ./dist dist/server" \ + "npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w"