We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ed26a8 commit d30bf08Copy full SHA for d30bf08
scripts/import-data/index.ts
@@ -71,10 +71,15 @@ async function main() {
71
await handleImport(args);
72
}
73
74
-main().catch((err) => {
75
- logger.error("Operation failed:", err);
76
- if (err.stack) {
77
- console.error(err.stack);
78
- }
79
- process.exit(1);
80
-});
+main()
+ .then(() => {
+ // Explicitly exit on success to ensure the process terminates
+ process.exit(0);
+ })
+ .catch((err) => {
+ logger.error("Operation failed:", err);
81
+ if (err.stack) {
82
+ console.error(err.stack);
83
+ }
84
+ process.exit(1);
85
+ });
0 commit comments