Repository navigation
Conversation
… hook copy Claude-Session: https://claude.ai/code/session_01L1XB34cHJP87u166RC13Jn Entire-Checkpoint: ec3a6faef407
…ocal prettier, never npx Claude-Session: https://claude.ai/code/session_01L1XB34cHJP87u166RC13Jn Entire-Checkpoint: c6fca55865ac
Contributor
Author
|
Closing as redundant. #1265 (PR #1275) moved the plugin to |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1264
What
#1267 fixed
templates/hooks/post-tool.shand.claude/hooks/post-tool.sh, but the plugin ships its own copy,hooks/post-tool.sh, wired in byhooks/hooks.json→${CLAUDE_PLUGIN_ROOT}/hooks/post-tool.sh. That copy still rannpx prettier --write, so plugin installs (the main install path) didn't get the fix that 2.19.0's CHANGELOG describes.hooks/post-tool.sh: the auto-format block is now byte-for-byte the template's. It resolves the edited file's repo root, runs onlynode_modules/.bin/prettier, and otherwise logsSKIP_FORMAT (no local prettier). Nonpxremains in the file.__tests__/post-tool-format.integration.test.ts: the gate now runs against all three shipped copies (describe.each), so the copies can't drift on this behaviour again.The rest of
hooks/post-tool.shstays diverged from the template (it has no relay check and no coverage analysis). That's out of scope here. #1265 (slim./pluginfolder) changes how the plugin is packaged and is the natural place to settle a single source for the hook copies.Verification
hooks/post-tool.shcases failed and the other four passed.post-toolpasses (6 files, 458 tests).bash -n hooks/post-tool.shis clean.Mutation-verified: AC-1 — restored the pre-fix npx block in hooks/post-tool.sh;
__tests__/post-tool-format.integration.test.ts > hooks/post-tool.sh auto-format (#1264) > skips formatting and logs the reason when no local prettier existsfailed; restored.🤖 Generated with Claude Code