@todoforai/cli 0.1.32 → 0.1.33

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.
@@ -44269,7 +44269,7 @@ import { parseArgs } from "util";
44269
44269
  // package.json
44270
44270
  var package_default = {
44271
44271
  name: "@todoforai/cli",
44272
- version: "0.1.32",
44272
+ version: "0.1.33",
44273
44273
  type: "module",
44274
44274
  bin: {
44275
44275
  "todoforai-cli": "bin/todoforai-cli.js",
@@ -48099,8 +48099,16 @@ ${"\u2500".repeat(40)}
48099
48099
  }
48100
48100
  mayfly?.stop();
48101
48101
  }
48102
- main().then(() => process.exit(process.exitCode ?? 0)).catch((e) => {
48102
+ var finish = (code) => {
48103
+ process.exitCode = code;
48104
+ const poll = setInterval(() => {
48105
+ if (process.stdout.writableLength === 0)
48106
+ process.exit(code);
48107
+ }, 5);
48108
+ poll.unref?.();
48109
+ };
48110
+ main().then(() => finish(process.exitCode ?? 0)).catch((e) => {
48103
48111
  process.stderr.write(`Error: ${e.message}
48104
48112
  `);
48105
- process.exit(1);
48113
+ finish(1);
48106
48114
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoforai/cli",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "todoforai-cli": "bin/todoforai-cli.js",