procband 0.3.4 → 0.3.5

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/dist/index.mjs +3 -0
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -751,6 +751,9 @@ function propagateFailure(exitCode) {
751
751
  propagatedFailure = true;
752
752
  if (process.exitCode == null || process.exitCode === 0) process.exitCode = exitCode;
753
753
  for (const proc of liveProcesses) proc.kill();
754
+ setImmediate(() => {
755
+ process.exit(process.exitCode ?? exitCode);
756
+ });
754
757
  }
755
758
  //#endregion
756
759
  export { supervise };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "procband",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Supervise subprocesses from TypeScript: prefix logs, wait for output patterns, and manage lifecycle/restarts.",
5
5
  "license": "MIT",
6
6
  "author": "Alec Larson",