mirror of
https://github.com/keycloak/keycloak.git
synced 2026-02-03 20:39:33 -05:00
make sure the index.ts file doesn't change (#35818)
to ensure backwards compatibility Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
f8f2b476a1
commit
97f4a0d80f
1 changed files with 6 additions and 0 deletions
|
|
@ -28,5 +28,11 @@ pnpm install --reporter=silent || {
|
|||
exit 0;
|
||||
}
|
||||
|
||||
if git diff --name-only --cached | grep 'index.ts$'
|
||||
then
|
||||
echo "pre-commit: Aborting you can't change the index.ts file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run lint-staged.
|
||||
pnpm exec lint-staged
|
||||
|
|
|
|||
Loading…
Reference in a new issue