Run pre-commit type check only for TypeScript (#1597)

* Prevent unnecessary type-checks

* Remove commented code
This commit is contained in:
filtered
2024-11-19 13:58:54 +11:00
committed by GitHub
parent 6e49685f58
commit 40245aacf9
3 changed files with 14 additions and 9 deletions

View File

@@ -1,7 +1,5 @@
if [[ "$OS" == "Windows_NT" ]]; then
npx.cmd lint-staged
npm.cmd run typecheck
else
npx lint-staged
npm run typecheck
fi