import * as fs from "fs"; const path = "src/lib/client/zod.gen.ts"; let content = fs.readFileSync(path, "utf8"); // Replace only for the upload schema const target = "upload_file: z.string"; while (content.includes(target)) { content = content.replace(target, "upload_file: z.any"); } fs.writeFileSync(path, content); console.log("✅ Fixed zod schema for upload_file");