Files
imagefind/scripts/check-script-syntax.sh
T

10 lines
329 B
Bash

#!/usr/bin/env bash
set -euo pipefail
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
python3 -m compileall -q "$PROJECT_ROOT/scripts" "$PROJECT_ROOT/backend/imagefind"
while IFS= read -r script; do
node --check "$script"
done < <(find "$PROJECT_ROOT/scripts" -maxdepth 1 -type f -name '*.mjs' -print | sort)