8 lines
197 B
Bash
8 lines
197 B
Bash
#!/usr/bin/env bash
|
|
# Run before pushing — catches TypeScript errors without a full build.
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
echo "→ TypeScript check…"
|
|
npm run typecheck
|
|
echo "✓ No type errors."
|