#!/bin/sh
set -e

yarn install --frozen-lockfile
yarn run update
if ! git diff --exit-code; then
  echo "Files not up to date after editing rules."
  echo "To fix this, run the following and commit the result:"
  echo "yarn run update"
  exit 1
fi
