mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
* Chore: Fix TypeScript strict errors with components using connect * Chore: More TypeScript fixes * Chore: Update strict check values * Still need to export these types... * Declare connector at the top of the file * Careful with find and replace...
14 lines
376 B
Bash
Executable File
14 lines
376 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo -e "Collecting code stats (typescript errors & more)"
|
|
|
|
ERROR_COUNT_LIMIT=136
|
|
ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strict true | grep -oP 'Found \K(\d+)')"
|
|
|
|
if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then
|
|
echo -e "Typescript strict errors $ERROR_COUNT exceeded $ERROR_COUNT_LIMIT so failing build"
|
|
exit 1
|
|
fi
|
|
|