#!/bin/sh

echo "▶ pre-push: typecheck…"
if ! npm run typecheck; then
  echo "✖ Typecheck failed."
  exit 1
fi

echo "▶ pre-push: tests…"
if ! npm test --if-present; then
  echo "✖ Tests failed."
  exit 1
fi
