(cwd: string)
| 63 | typeof value === "object" && value !== null && !Array.isArray(value); |
| 64 | |
| 65 | const makeScopeId = (cwd: string): string => { |
| 66 | const folder = basename(cwd) || cwd; |
| 67 | const hash = createHash("sha256").update(cwd).digest("hex").slice(0, 8); |
| 68 | return `${folder}-${hash}`; |
| 69 | }; |
| 70 | |
| 71 | const readLegacyMigrations = async (): Promise<readonly { sql: string; hash: string }[]> => { |
| 72 | const journal = (await Bun.file(join(APPS_LOCAL_DRIZZLE, "meta/_journal.json")).json()) as { |