Skip to content

Commit

Permalink
Don’t let the seed command hang without exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed Jan 23, 2025
1 parent a1a578e commit a725808
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/superflare/cli/db/seed.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { register } from "esbuild-register/dist/node";
import path from "node:path";
import { exit } from "node:process";
import { getD1Database } from "../d1-database";
import { logger } from "../logger";
import { CommonYargsArgv, StrictYargsOptionsToInterface } from "../yargs-types";
Expand All @@ -23,6 +24,7 @@ export async function seedHandler(
const dbName = argv.db;
const seedPath = argv.seedPath;
await seedDb(dbName, seedPath);
exit(0);
}

export async function seedDb(dbName: string, seedPath: string) {
Expand Down

0 comments on commit a725808

Please sign in to comment.