Initial commit
This commit is contained in:
6
hooks/validate-manifest.json
Normal file
6
hooks/validate-manifest.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"event": "PostToolUse",
|
||||
"tool": "Write",
|
||||
"pattern": "**/manifest.json",
|
||||
"command": "bash -c 'jq -e \".id and .name and .version and .description and .author\" \"$FILE_PATH\" > /dev/null && echo \"manifest.json validated\" || (echo \"Error: manifest.json missing required fields\" && exit 1)'"
|
||||
}
|
||||
Reference in New Issue
Block a user