mirror of
https://github.com/Dasemu/gemini-media-mcp.git
synced 2026-11-26 07:16:09 +00:00
26 lines
643 B
JSON
26 lines
643 B
JSON
{
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "file=$(jq -r '.tool_input.file_path // empty'); if [ -n \"$file\" ] && [ \"${file##*.}\" = \"ts\" ]; then cd \"$CLAUDE_PROJECT_DIR\" && npx tsc --noEmit -p tsconfig.json; fi"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && npm run build && PUBLIC_MEDIA_SIGNING_SECRET=12345678901234567890123456789012 npm test"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|