UNPKG

276 Bapplication/x-shView Raw
1#!/bin/bash
2set -ex
3
4npm run lint
5npm test
6
7npm run generate
8
9git --no-pager diff
10
11MODIFIED_FILES=$(git diff --name-only)
12if [[ -n $MODIFIED_FILES ]]; then
13 echo "ERROR: Changes detected in generated code, please run 'npm run generate' and check-in the changes."
14 exit 1
15fi