diff --git a/package.json b/package.json index e19a83f..929fbd0 100644 --- a/package.json +++ b/package.json @@ -83,4 +83,4 @@ "engines": { "node": ">=12" } -} +} \ No newline at end of file diff --git a/src/cli/cli.ts b/src/cli/cli.ts index 3e74fe9..7d5c8e9 100644 --- a/src/cli/cli.ts +++ b/src/cli/cli.ts @@ -225,11 +225,11 @@ export async function run(argv: NodeJS.Process['argv']) { 'Search config invalid:', validationErrors.map(err => err?.message || '') ); - process.exit(0); + process.exit(1); } } catch (err: unknown) { const errorMsg = err instanceof Error ? err.message : JSON.stringify(err); printErrors('\nSomething went wrong:', errorMsg); - process.exit(0); + process.exit(1); } } diff --git a/src/utils/MemoryUsageReporter.ts b/src/utils/MemoryUsageReporter.ts index 4dff0fe..3f58421 100644 --- a/src/utils/MemoryUsageReporter.ts +++ b/src/utils/MemoryUsageReporter.ts @@ -48,6 +48,6 @@ export class MemoryUsageReporter { console.log('Stopping memory usage tracker', reason); clearInterval(this.interval); this.interval = null; - process.exit(0); + process.exit(1); } }