]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/watch/server.sh
Refractor retry transaction function
[github/Chocobozzz/PeerTube.git] / scripts / watch / server.sh
index 448f695521c31bb1eb8856f5b7c825c67f624b6f..9d4eb8e02f5c8b3e916d6510730214e6726d30e8 100755 (executable)
@@ -1,5 +1,12 @@
-#!/usr/bin/env sh
+#!/bin/sh
 
-NODE_ENV=test concurrently -k \
+set -eu
+
+# Copy locales
+mkdir -p "./client/dist"
+rm -rf "./client/dist/locale"
+cp -r "./client/src/locale/target" "./client/dist/locale"
+
+NODE_ENV=test npm run concurrently -- -k \
   "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
-  "npm run tsc -- --sourceMap -w"
+  "npm run tsc -- --sourceMap --preserveWatchOutput -w"