@dif.sh/cli 0.5.0 → 0.5.1

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/dif.js CHANGED
@@ -32,4 +32,12 @@ if (result.error) {
32
32
  process.exit(1);
33
33
  }
34
34
 
35
- process.exit(result.status ?? 0);
35
+ if (result.signal) {
36
+ // The binary was killed by a signal. Re-raise it so our own exit status
37
+ // reflects that (128+n convention) instead of reporting success — CI
38
+ // scripts checking `$?` must not treat an interrupted build as passing.
39
+ process.kill(process.pid, result.signal);
40
+ // If the signal was caught/ignored (e.g. exotic handlers), still fail.
41
+ process.exit(1);
42
+ }
43
+ process.exit(result.status ?? 1);
package/install.js CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dif.sh/cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "The dif.sh CLI. Experiments live in the repo. This package downloads the matching Rust binary on install.",
5
5
  "license": "MIT",
6
6
  "bin": {