Yuki Takei 2 месяцев назад
Родитель
Сommit
35e2af3018
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      .claude/settings.json

+ 2 - 2
.claude/settings.json

@@ -6,9 +6,9 @@
         "hooks": [
           {
             "type": "command",
-            "command": "if [[ \"$FILE\" == */apps/app/* ]]; then REPO_ROOT=\"${FILE%%/apps/app/*}\"; cd \"$REPO_ROOT/apps/app\" && pnpm run lint:biome:fix \"${FILE#$REPO_ROOT/apps/app/}\"; fi",
+            "command": "if [[ \"$FILE\" == */apps/* ]] || [[ \"$FILE\" == */packages/* ]]; then REPO_ROOT=$(echo \"$FILE\" | sed 's|/\\(apps\\|packages\\)/.*|/|'); cd \"$REPO_ROOT\" && pnpm biome check --write \"$FILE\" 2>/dev/null || true; fi",
             "timeout": 30,
-            "description": "Auto-format edited files in apps/app with Biome"
+            "description": "Auto-format edited files in apps/* and packages/* with Biome"
           }
         ]
       }