fix: menu bar and dock icon settings (#2490)
Co-authored-by: Zane Staggs <zane@squareup.com>
This commit is contained in:
+12
-4
@@ -2,12 +2,20 @@
|
||||
|
||||
# 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
|
||||
if [ -d "ui/desktop" ]; then
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
cd ui/desktop && npx lint-staged
|
||||
else
|
||||
echo "Warning: ui/desktop directory does not exist, skipping lint-staged"
|
||||
fi
|
||||
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
|
||||
if [ -d "ui-v2" ]; then
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
cd ui-v2 && npx lint-staged
|
||||
else
|
||||
echo "Warning: ui-v2 directory does not exist, skipping lint-staged"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user