/** * Fake-TTY wrapper for `drizzle-kit generate`. * * drizzle-kit 0.31 refuses to render its create-or-rename prompt unless stdin * is a TTY — it prints "Interactive prompts require a TTY" and exits 0 without * generating. This wrapper presents a fake TTY and bridges the real (piped) * stdin into it, so the parent runner's injected keystrokes reach the prompt. * * Ported from `apps/compiler/src/runtime-templates/drizzle-generate-wrapper.ts` * with one deliberate difference: the compiler falls back to * `/deps/node_modules/drizzle-kit/bin.cjs` when resolution fails, because the * hosted image stages dependencies there. That fallback is REMOVED here. * * The executor has already pinned and version-checked the project's own * drizzle-kit (`assertSupportedDrizzleVersion`). Silently falling back to some * other copy would run a binary that never passed that check — against the * user's real migration history. Failing loudly is the only safe behavior, so * resolution is anchored to the project root and allowed to throw. */ export declare const DRIZZLE_GENERATE_WRAPPER_FILENAME = "__qb_drizzle_generate.mjs"; /** * @param projectRoot Absolute path whose `node_modules` holds the pinned * drizzle-kit. Anchoring `createRequire` here — rather than at the wrapper's * own location or the cwd — is what guarantees we run the same binary the * version check approved. */ export declare function buildDrizzleGenerateWrapper(projectRoot: string): string; //# sourceMappingURL=drizzle-wrapper.d.ts.map