mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 23:27:55 -05:00
15 lines
410 B
TypeScript
15 lines
410 B
TypeScript
import { installSeedClock } from "~/db/seed/core/frozen-clock";
|
|
|
|
// 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 ${((performance.now() - startedAt) / 1000).toFixed(1)}s`,
|
|
);
|