cc-hooks-ts 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -115,7 +115,7 @@ function handleHookResult(eventName, hookResult) {
115
115
  if (isNonEmptyString(hookResult.payload)) console.error(hookResult.payload);
116
116
  return process.exit(1);
117
117
  case "json":
118
- console.log(JSON.stringify(hookResult.payload));
118
+ console.log(JSON.stringify(hookResult.payload.output));
119
119
  return process.exit(0);
120
120
  }
121
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-hooks-ts",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "description": "Write claude code hooks with type safety",
6
6
  "sideEffects": false,