@mono-labs/cli 0.0.243 → 0.0.246
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.
|
@@ -42,4 +42,19 @@ function ensureSignalHandlers() {
|
|
|
42
42
|
killAllBackground();
|
|
43
43
|
process.exit(143);
|
|
44
44
|
});
|
|
45
|
+
// Handle process exit event - ensures cleanup on any exit path
|
|
46
|
+
process.on('exit', () => {
|
|
47
|
+
killAllBackground();
|
|
48
|
+
});
|
|
49
|
+
// Handle beforeExit - fires when event loop empties (before exit)
|
|
50
|
+
process.on('beforeExit', () => {
|
|
51
|
+
killAllBackground();
|
|
52
|
+
});
|
|
53
|
+
// Windows-specific: handle SIGHUP as fallback for terminal close
|
|
54
|
+
if (process.platform === 'win32') {
|
|
55
|
+
process.on('SIGHUP', () => {
|
|
56
|
+
killAllBackground();
|
|
57
|
+
process.exit(129);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
45
60
|
}
|
|
@@ -39,4 +39,22 @@ export function ensureSignalHandlers(): void {
|
|
|
39
39
|
killAllBackground()
|
|
40
40
|
process.exit(143)
|
|
41
41
|
})
|
|
42
|
+
|
|
43
|
+
// Handle process exit event - ensures cleanup on any exit path
|
|
44
|
+
process.on('exit', () => {
|
|
45
|
+
killAllBackground()
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
// Handle beforeExit - fires when event loop empties (before exit)
|
|
49
|
+
process.on('beforeExit', () => {
|
|
50
|
+
killAllBackground()
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
// Windows-specific: handle SIGHUP as fallback for terminal close
|
|
54
|
+
if (process.platform === 'win32') {
|
|
55
|
+
process.on('SIGHUP', () => {
|
|
56
|
+
killAllBackground()
|
|
57
|
+
process.exit(129)
|
|
58
|
+
})
|
|
59
|
+
}
|
|
42
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mono-labs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.246",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "A CLI tool for building and deploying projects",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -103,5 +103,6 @@
|
|
|
103
103
|
"dist/",
|
|
104
104
|
"types.d.ts",
|
|
105
105
|
"README.md"
|
|
106
|
-
]
|
|
106
|
+
],
|
|
107
|
+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
107
108
|
}
|