mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
Fix husky pre-commit & type check only staged (#1361)
* Fix husky pre-commit on some Windows clients https://github.com/typicode/husky/issues/1072#issuecomment-1784006332 * Limit commit type check to staged files Adds tsc-files package (dev only) and its config * Remove deprecated git add from lint-staged
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
npx lint-staged
|
||||
npm run typecheck
|
||||
if [[ "$OS" == "Windows_NT" ]]; then
|
||||
npx.cmd lint-staged
|
||||
else
|
||||
npx lint-staged
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user