Merge pull request #423 from pbakaus/hook-guard-unsupported-node

Stop the design hook erroring on a node too old for ESM
This commit is contained in:
Paul Bakaus
2026-07-26 18:12:52 -07:00
committed by GitHub
8 changed files with 125 additions and 24 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
{
"type": "command",
"matcher": "edit|create|apply_patch",
"bash": "node \"$(git rev-parse --show-toplevel)/.github/skills/impeccable/scripts/hook.mjs\"",
"bash": "[ ! -f \"$(git rev-parse --show-toplevel)/.github/skills/impeccable/scripts/hook.mjs\" ] || ! node -e \"process.exit(parseInt(process.versions.node,10)>=22?0:1)\" 2>/dev/null || node \"$(git rev-parse --show-toplevel)/.github/skills/impeccable/scripts/hook.mjs\"",
"timeoutSec": 5
}
]