Fix prod clean script
authorChocobozzz <florian.bigard@gmail.com>
Mon, 12 Jun 2017 18:34:50 +0000 (20:34 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Mon, 12 Jun 2017 18:34:50 +0000 (20:34 +0200)
scripts/danger/clean/prod.sh

index 7ee13ba8372f918c0812cc503659d9b8a80cdf03..705987100476b399e817a78f5716e292befeb23f 100755 (executable)
@@ -4,5 +4,5 @@ read -p "This will remove all directories and SQL tables. Are you sure? (y/*) "
 echo
 
 if [[ "$REPLY" =~ ^[Yy]$ ]]; then
-  NODE_ENV=production node "./scripts/danger/clean/cleaner"
+  NODE_ENV=production npm run ts-node "./scripts/danger/clean/cleaner"
 fi