BREAKING CHANGE(lifecycle): redesign SmartExit with ProcessLifecycle singleton

SmartExit constructor no longer installs signal handlers.
Applications must call ProcessLifecycle.install() explicitly.
Split into SmartExit (instance process tracking) and ProcessLifecycle (global signal coordination).
Remove @push.rocks/smartdelay dependency.
This commit is contained in:
2026-03-03 23:40:05 +00:00
parent ad8e389ef5
commit 862c67edbb
5 changed files with 373 additions and 177 deletions

View File

@@ -5,10 +5,9 @@ export { childProcess };
// pushrocks scope
import * as lik from '@push.rocks/lik';
import * as smartdelay from '@push.rocks/smartdelay';
import * as smartpromise from '@push.rocks/smartpromise';
export { lik, smartdelay, smartpromise };
export { lik, smartpromise };
// third party scope
import * as treeKill from 'tree-kill';