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:
Erik Jan de Wit 2024-12-17 14:14:19 +01:00 committed by GitHub
parent f8f2b476a1
commit 97f4a0d80f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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