]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/danger/clean/prod.sh
Clean shell scripts (#398)
[github/Chocobozzz/PeerTube.git] / scripts / danger / clean / prod.sh
index 705987100476b399e817a78f5716e292befeb23f..0675600c4a517628d427d5eb1bd2e33597321af4 100755 (executable)
@@ -1,8 +1,10 @@
 #!/bin/bash
 
+set -eu
+
 read -p "This will remove all directories and SQL tables. Are you sure? (y/*) " -n 1 -r
 echo
 
 if [[ "$REPLY" =~ ^[Yy]$ ]]; then
-  NODE_ENV=production npm run ts-node "./scripts/danger/clean/cleaner"
+  NODE_ENV=production npm run ts-node -- --type-check "./scripts/danger/clean/cleaner"
 fi