From eca43c82d077195b03b6931b6d33c30e1a882e4c Mon Sep 17 00:00:00 2001 From: Stan Runge Date: Wed, 23 Sep 2026 04:47:27 +0000 Subject: [PATCH] fix zod imports in bun test build --- src/lib/server/osu-profile.ts | 2 +- src/lib/validation/blog.ts | 2 +- src/lib/validation/sighting.ts | 2 +- src/routes/projects/animaldex/api/detect-breed/+server.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/server/osu-profile.ts b/src/lib/server/osu-profile.ts index 4d0d189..d984bdd 100644 --- a/src/lib/server/osu-profile.ts +++ b/src/lib/server/osu-profile.ts @@ -1,4 +1,4 @@ -import { z } from 'zod'; +import * as z from 'zod'; const profileSchema = z.object({ id: z.number().int().positive(), username: z.string().min(1), diff --git a/src/lib/validation/blog.ts b/src/lib/validation/blog.ts index 283e948..789d737 100644 --- a/src/lib/validation/blog.ts +++ b/src/lib/validation/blog.ts @@ -1,4 +1,4 @@ -import { z } from 'zod'; +import * as z from 'zod'; export const createArticleSchema = z.object({ title: z.string().min(1).max(256) diff --git a/src/lib/validation/sighting.ts b/src/lib/validation/sighting.ts index f883ea9..f40c6b8 100644 --- a/src/lib/validation/sighting.ts +++ b/src/lib/validation/sighting.ts @@ -1,4 +1,4 @@ -import { z } from 'zod'; +import * as z from 'zod'; // ── Register new animal (+ first sighting) ──────────────────────────────────── diff --git a/src/routes/projects/animaldex/api/detect-breed/+server.ts b/src/routes/projects/animaldex/api/detect-breed/+server.ts index 02035ce..17fda12 100644 --- a/src/routes/projects/animaldex/api/detect-breed/+server.ts +++ b/src/routes/projects/animaldex/api/detect-breed/+server.ts @@ -1,6 +1,6 @@ import { json, error } from '@sveltejs/kit'; import type { RequestHandler } from './$types'; -import { z } from 'zod'; +import * as z from 'zod'; const schema = z.object({ imageUrl: z.string().url() });