@inthedark/dxlint 0.1.11 → 0.1.13

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.
package/bin/dxlint CHANGED
@@ -2,6 +2,7 @@
2
2
  // Runs the dxlint binary for this platform. It finds its library (std/,
3
3
  // rules/) in the nearest directory above it that holds both: this package.
4
4
  const { spawnSync } = require("node:child_process");
5
+ const os = require("node:os");
5
6
  const path = require("node:path");
6
7
 
7
8
  const binary = path.join(__dirname, `dxlint-${process.platform}-${process.arch}${process.platform === "win32" ? ".exe" : ""}`);
@@ -12,4 +13,8 @@ if (result.error) {
12
13
  : `dxlint: ${result.error.message}\n`);
13
14
  process.exit(2);
14
15
  }
15
- process.exit(result.status ?? 1);
16
+ if (result.signal) {
17
+ process.stderr.write(`dxlint: ${binary} was killed by ${result.signal}\n`);
18
+ process.exit(128 + (os.constants.signals[result.signal] ?? 0));
19
+ }
20
+ process.exit(result.status);
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inthedark/dxlint",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "let you and your agents own your linter",
5
5
  "license": "MIT",
6
6
  "repository": {