From 8af016ffc1e4a038afd100dbd9c3d4d579f656a7 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Sat, 16 Nov 2024 01:45:39 +1100 Subject: [PATCH] Fix husky pre-commit for winnt clients [skip ci] (#1551) --- .husky/pre-commit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index f3f510d27..399367d73 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,6 @@ -npx lint-staged +if [[ "$OS" == "Windows_NT" ]]; then + npx.cmd lint-staged +else + npx lint-staged +fi npm run typecheck