blob: 1d18892f12977505902b123841c63618e014104a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
ARGS=(--allow-net --allow-env --allow-read --unstable)
if grep -q "DEBUG=1" .env; then
deno test "${ARGS[@]}" test/ &&
echo "Tests succeeded!" &&
deno run "${ARGS[@]}" src/main.ts
else
deno run "${ARGS[@]}" src/main.ts
fi
|