From: Chocobozzz Date: Tue, 22 Oct 2019 06:55:05 +0000 (+0200) Subject: Fix dev mode X-Git-Tag: v2.0.0-rc.1~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=02e51e2d755b779c29a1086533a270512a71d8f4;p=oweals%2Fpeertube.git Fix dev mode --- 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"