This commit is contained in:
Kalle
2026-08-16 11:05:12 +03:00
parent c0fdb922fd
commit e3e071b6a5
30 changed files with 3023 additions and 136 deletions

View File

@@ -1,8 +1,14 @@
import { seed } from "~/db/seed";
import { installSeedClock } from "~/db/seed/core/frozen-clock";
const startedAt = Date.now();
// installed before the seed modules load so even module-scope dates are frozen
installSeedClock();
const startedAt = performance.now();
const { seed } = await import("~/db/seed");
await seed();
// biome-ignore lint/suspicious/noConsole: CLI script output
console.log(`Seeded in ${((Date.now() - startedAt) / 1000).toFixed(1)}s`);
console.log(
`Seeded in ${((performance.now() - startedAt) / 1000).toFixed(1)}s`,
);