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