Commit e0ab9dc
committed
fix(hooks): point update-graph.sh fallback build path at dist/cli.js
The PostToolUse hook's fallback branch (used when the codegraph binary
isn't on PATH) invoked node against src/cli.js, a file that has never
existed in this repo. The CLI entry point is TypeScript at src/cli.ts,
compiled to dist/cli.js per package.json's bin.codegraph. Since stderr
is redirected to /dev/null, the branch failed silently and the graph
never rebuilt for contributors without a global codegraph install.
Add a regression test asserting the hook never references src/cli.js
and does invoke package.json's bin.codegraph entry point.1 parent 5d99bf0 commit e0ab9dc
2 files changed
Lines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments