fix(smartshell): use close event on child processes to ensure exit handling and update dependency versions

This commit is contained in:
2026-03-04 18:13:53 +00:00
parent d37071dae0
commit 3d6a33f8d2
5 changed files with 1048 additions and 1032 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartshell',
version: '3.3.2',
version: '3.3.6',
description: 'A library for executing shell commands using promises.'
}

View File

@@ -249,7 +249,7 @@ export class Smartshell {
}
};
execChildProcess.once('exit', handleExit);
execChildProcess.once('close', handleExit);
execChildProcess.once('error', (error) => {
if (timeoutHandle) {
clearTimeout(timeoutHandle);
@@ -472,7 +472,7 @@ export class Smartshell {
}
};
execChildProcess.once('exit', handleExit);
execChildProcess.once('close', handleExit);
execChildProcess.once('error', (error) => {
if (timeoutHandle) {
clearTimeout(timeoutHandle);