watchmen-cli 1.7.8 → 1.7.9

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/bin/wm.js +7 -0
  2. package/package.json +4 -4
package/bin/wm.js CHANGED
@@ -17,6 +17,13 @@ try {
17
17
  process.exit(127);
18
18
  }
19
19
 
20
+ // Ignore SIGINT in the Node.js wrapper so SIGINT (Ctrl-C or a test's
21
+ // kill(-pgid, SIGINT)) is handled solely by the Rust child. Without this,
22
+ // Node.js dies from SIGINT while blocked in spawnSync, and the child's
23
+ // cooperative exit-code (0) is never forwarded — callers see rc=-2 (signal).
24
+ // After spawnSync returns the wrapper exits with the child's encoded rc.
25
+ process.on("SIGINT", () => {});
26
+
20
27
  const result = spawnSync(binary, process.argv.slice(2), {
21
28
  stdio: "inherit",
22
29
  env: process.env,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "watchmen-cli",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "description": "Capture, compare, and transfer your complete development environment",
5
5
  "main": "shim.js",
6
6
  "keywords": [
@@ -32,9 +32,9 @@
32
32
  "node": ">=18"
33
33
  },
34
34
  "optionalDependencies": {
35
- "watchmen-cli-darwin-arm64": "1.7.8",
36
- "watchmen-cli-linux-x64": "1.7.8",
37
- "watchmen-cli-win32-x64": "1.7.8"
35
+ "watchmen-cli-darwin-arm64": "1.7.9",
36
+ "watchmen-cli-linux-x64": "1.7.9",
37
+ "watchmen-cli-win32-x64": "1.7.9"
38
38
  },
39
39
  "files": [
40
40
  "shim.js",