resq-cli 0.3.0

Developer CLI for the ResQ autonomous drone platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
# Repo-specific pre-push — runs alongside the canonical ResQ pre-push hook.
# Generated by `resq dev scaffold-local-hook --kind node`.
set -euo pipefail

if command -v bun >/dev/null 2>&1; then
    if [ -f package.json ] && grep -q '"lint"' package.json; then
        echo "  TS/JS: bun run lint"
        bun run lint
    fi
elif command -v npm >/dev/null 2>&1; then
    if [ -f package.json ] && grep -q '"lint"' package.json; then
        echo "  TS/JS: npm run lint"
        npm run lint
    fi
else
    echo "  skipping lint (bun/npm not installed)" >&2
fi