From 02e51e2d755b779c29a1086533a270512a71d8f4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 22 Oct 2019 08:55:05 +0200 Subject: [PATCH] Fix dev mode --- scripts/watch/server.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" rm -rf "./dist" +mkdir "./dist" +cp "./tsconfig.json" "./dist" + NODE_ENV=test npm run concurrently -- -k \ - "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \ + "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" -- 2.25.1