mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-17 22:24:21 +01:00
14 lines
416 B
Bash
Executable File
14 lines
416 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Only auto-format desktop TS code if relevant files are modified
|
|
if git diff --cached --name-only | grep -q "^ui/desktop/"; then
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
cd ui/desktop && npx lint-staged
|
|
fi
|
|
|
|
# Only auto-format ui-v2 TS code if relevant files are modified
|
|
if git diff --cached --name-only | grep -q "^ui-v2/"; then
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
cd ui-v2 && npx lint-staged
|
|
fi
|