11 lines
314 B
TypeScript
11 lines
314 B
TypeScript
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
|
|
content = content.replace("upload_file: z.string", "upload_file: z.any");
|
|
|
|
fs.writeFileSync(path, content);
|
|
console.log("✅ Fixed zod schema for upload_file");
|