mux-sesh 1.9.1 → 1.9.2
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/package.json +1 -1
- package/src/util/shutdown.ts +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "mux-sesh",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.2",
|
|
5
5
|
"description": "A beautiful tmux session manager built with OpenTUI - fuzzy search sessions, manage projects, clone from GitHub",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"packageManager": "bun@1.3.5",
|
package/src/util/shutdown.ts
CHANGED
|
@@ -14,7 +14,7 @@ const TERMINAL_RESET_SEQUENCE = [
|
|
|
14
14
|
|
|
15
15
|
const state: {
|
|
16
16
|
renderer?: CliRenderer
|
|
17
|
-
exiting?: Promise<
|
|
17
|
+
exiting?: Promise<never>
|
|
18
18
|
listenersInstalled?: boolean
|
|
19
19
|
} = {}
|
|
20
20
|
|
|
@@ -60,15 +60,15 @@ export function initializeShutdown(renderer: CliRenderer): void {
|
|
|
60
60
|
state.listenersInstalled = true
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export function requestShutdown(code = 0): Promise<
|
|
63
|
+
export function requestShutdown(code = 0): Promise<never> {
|
|
64
64
|
if (state.exiting) {
|
|
65
65
|
return state.exiting
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
state.exiting = (async () => {
|
|
69
|
-
process.exitCode = code
|
|
70
69
|
destroyRenderer()
|
|
71
70
|
resetTerminalModes()
|
|
71
|
+
process.exit(code)
|
|
72
72
|
})()
|
|
73
73
|
|
|
74
74
|
return state.exiting
|