feat: product barcode images

This commit is contained in:
2025-10-21 11:10:27 +04:00
parent 82f08b4f83
commit 4d5723bc72
15 changed files with 668 additions and 111 deletions

View File

@ -4,7 +4,10 @@ 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");
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");