From 4dd6d0be1b867b719b78037160e32810d366dd12 Mon Sep 17 00:00:00 2001 From: Omer Mecitoglu Date: Wed, 23 Oct 2024 16:06:58 +0700 Subject: [PATCH] fix: import zod-to-json-schema bug --- src/core/zod-to-openapi.ts | 2 +- tsup.config.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/zod-to-openapi.ts b/src/core/zod-to-openapi.ts index 47511a5..86f34fb 100644 --- a/src/core/zod-to-openapi.ts +++ b/src/core/zod-to-openapi.ts @@ -1,4 +1,4 @@ -import zodToJsonSchema from "zod-to-json-schema"; +import { zodToJsonSchema } from "zod-to-json-schema"; import { isFile } from "~/utils/zod-schema"; import type { SchemaObject } from "@omer-x/openapi-types/schema"; import type { ZodObject, ZodType } from "zod"; diff --git a/tsup.config.ts b/tsup.config.ts index b573343..3792123 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -14,7 +14,6 @@ export default defineConfig({ external: [ ], noExternal: [ - "zod-to-json-schema", ], esbuildPlugins: [ ],