oxlint-harness 1.0.4 → 1.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/command.js +3 -2
  2. package/package.json +1 -1
package/dist/command.js CHANGED
@@ -258,11 +258,12 @@ The suppression file format uses counts per rule per file:
258
258
  const reporter = new ErrorReporter();
259
259
  reporter.reportExcessErrors(excessErrors, flags["show-code"]);
260
260
  if (flags["fail-on-excess"]) {
261
- this.exit(1);
261
+ process.exit(1);
262
262
  }
263
263
  }
264
264
  catch (error) {
265
- this.error(error instanceof Error ? error.message : String(error));
265
+ this.logToStderr(error instanceof Error ? error.message : String(error));
266
+ process.exit(2);
266
267
  }
267
268
  }
268
269
  async saveResults(path, diagnostics) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-harness",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "A harness for oxlint with bulk suppressions support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",