#!/usr/bin/env sh
set -eu

SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
if command -v bun >/dev/null 2>&1; then
  exec bun "$SCRIPT_DIR/tjwater-cli.ts" "$@"
fi

exec node "$SCRIPT_DIR/tjwater-cli.ts" "$@"
