aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/danger/clean/prod.sh
blob: 0675600c4a517628d427d5eb1bd2e33597321af4 (plain) (blame)
1
2
3
4
5
6
7
8
9
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 -- --type-check "./scripts/danger/clean/cleaner"
fi