diff options
-rwxr-xr-x | scripts/watch/server.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/watch/server.sh b/scripts/watch/server.sh index f6721a18e..635bebf8e 100755 --- a/scripts/watch/server.sh +++ b/scripts/watch/server.sh | |||
@@ -9,6 +9,9 @@ cp -r "./client/src/locale/target" "./client/dist/locale" | |||
9 | 9 | ||
10 | rm -rf "./dist" | 10 | rm -rf "./dist" |
11 | 11 | ||
12 | mkdir "./dist" | ||
13 | cp "./tsconfig.json" "./dist" | ||
14 | |||
12 | NODE_ENV=test npm run concurrently -- -k \ | 15 | NODE_ENV=test npm run concurrently -- -k \ |
13 | "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \ | 16 | "npm run tsc -- --sourceMap && cp -r ./server/static ./server/assets ./dist/server && npm run nodemon -- --delay 2 --watch ./dist dist/server" \ |
14 | "npm run tsc -- --sourceMap --preserveWatchOutput -w" | 17 | "npm run tsc -- --sourceMap --preserveWatchOutput -w" |