(cwd: string)
| 50 | typeof value === "object" && value !== null && !Array.isArray(value); |
| 51 | |
| 52 | const makeScopeId = (cwd: string): string => { |
| 53 | const folder = basename(cwd) || cwd; |
| 54 | const hash = createHash("sha256").update(cwd).digest("hex").slice(0, 8); |
| 55 | return `${folder}-${hash}`; |
| 56 | }; |
| 57 | |
| 58 | const readLegacyMigrations = async (): Promise<readonly { sql: string; hash: string }[]> => { |
| 59 | const journal = (await Bun.file(join(APPS_LOCAL_DRIZZLE, "meta/_journal.json")).json()) as { |