fix: update stale .js usage comments and husky cli.js fallback path (#1975) - #2187
Merged
Conversation
…1975) Five scripts/*.ts benchmark/build files still had `Usage: node scripts/X.js` header comments from before they were renamed to .ts (now run via node --experimental-strip-types --import ./scripts/ts-resolve-loader.js, or node scripts/node-ts.js for build-wasm.ts specifically). Updated each to the actual current invocation. .husky/pre-commit and .husky/commit-msg both fell back to `node src/cli.js` when the global codegraph binary isn't on PATH -- src/cli.js hasn't existed since the source moved to src/cli.ts (compiled to dist/cli.js). The `|| true` swallowed the failure silently, so on any machine without a global codegraph install the pre-commit graph rebuild and commit-msg impact summary silently never ran. Point both fallbacks at dist/cli.js instead. Closes #1975 docs check acknowledged: comment/hook-only fix, no README/CLAUDE.md/ROADMAP surface change
Contributor
Greptile SummaryUpdates stale developer-facing invocations and restores local CLI fallbacks in Git hooks.
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The hook fallbacks now target the package's compiled CLI entry point, which is produced during the same prepare lifecycle that installs Husky, and each revised script command is valid for the repository's supported Node versions. Important Files Changed
Reviews (1): Last reviewed commit: "fix: update stale .js usage comments and..." | Re-trigger Greptile |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Verification
Closes #1975