@inthedark/dxlint 0.1.11 → 0.1.12
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 +6 -1
- package/bin/dxlint-darwin-arm64 +0 -0
- package/package.json +1 -1
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
|
-
|
|
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);
|
package/bin/dxlint-darwin-arm64
CHANGED
|
Binary file
|