@rigour-labs/cli 2.15.0 → 2.17.0

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.
@@ -73,10 +73,13 @@ export async function checkCommand(cwd, files = [], options = {}) {
73
73
  const fixPacketPath = path.join(cwd, 'rigour-fix-packet.json');
74
74
  await fs.writeJson(fixPacketPath, fixPacket, { spaces: 2 });
75
75
  }
76
- // JSON output mode
76
+ // JSON output mode - use stdout.write for large outputs to avoid truncation
77
77
  if (options.json) {
78
- console.log(JSON.stringify(report, null, 2));
79
- process.exit(report.status === 'PASS' ? EXIT_PASS : EXIT_FAIL);
78
+ const jsonOutput = JSON.stringify(report, null, 2);
79
+ process.stdout.write(jsonOutput + '\n', () => {
80
+ process.exit(report.status === 'PASS' ? EXIT_PASS : EXIT_FAIL);
81
+ });
82
+ return; // Wait for write callback
80
83
  }
81
84
  // CI mode: minimal output
82
85
  if (options.ci) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rigour-labs/cli",
3
- "version": "2.15.0",
3
+ "version": "2.17.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "rigour": "dist/cli.js"
@@ -28,7 +28,7 @@
28
28
  "inquirer": "9.2.16",
29
29
  "ora": "^8.0.1",
30
30
  "yaml": "^2.8.2",
31
- "@rigour-labs/core": "2.15.0"
31
+ "@rigour-labs/core": "2.17.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/fs-extra": "^11.0.4",