diff --git a/src/index.ts b/src/index.ts index 8c57217..d945178 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,6 +12,9 @@ async function init() { }); await initDb(); + // edge case clause for creating compatible .db files, do not enable + if (config.mode === "init-db-and-exit") process.exit(0); + // do not enable init-db-only mode for usage. (global as any).HEADCOMMIT = config.mode === "development" ? "development" : config.mode === "test" ? "test" : getCommit() as string;