git-diff-ai-reviewer 1.2.3 → 1.2.4

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/bin/review.js +3 -3
  2. package/package.json +1 -1
package/bin/review.js CHANGED
@@ -242,11 +242,11 @@ async function commandReview(config, flags) {
242
242
 
243
243
  // Exit with non-zero if critical issues found
244
244
  if (severityCounts.critical > 0) {
245
- process.exit(1);
245
+ process.exitCode = 1;
246
246
  }
247
247
  } catch (error) {
248
248
  console.error(`\n❌ Review failed: ${error.message}`);
249
- process.exit(2);
249
+ process.exitCode = 2;
250
250
  }
251
251
  }
252
252
 
@@ -390,5 +390,5 @@ async function main() {
390
390
 
391
391
  main().catch(err => {
392
392
  console.error(`\n❌ Unexpected error: ${err.message}`);
393
- process.exit(2);
393
+ process.exitCode = 2;
394
394
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-diff-ai-reviewer",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "AI-powered code review using Claude or Gemini API. Reviews git branch diffs and generates actionable fix prompts.",
5
5
  "main": "src/index.js",
6
6
  "bin": {