@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.
- package/dist/todoforai-cli.js +11 -3
- package/package.json +1 -1
package/dist/todoforai-cli.js
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
48113
|
+
finish(1);
|
|
48106
48114
|
});
|