diff --git a/examples/vite/src/main.ts b/examples/vite/src/main.ts index 4cef040..2e5ff0e 100644 --- a/examples/vite/src/main.ts +++ b/examples/vite/src/main.ts @@ -15,7 +15,7 @@ document.querySelector("#app")!.innerHTML = ` `; -import { newFetch } from "@notainc/typed-api-spec/zod/validation"; +import { newFetch } from "@notainc/typed-api-spec/zod"; const GITHUB_API_ORIGIN = "https://api.github.com"; const endpoint = `${GITHUB_API_ORIGIN}/repos/nota/typed-api-spec/topics`; diff --git a/pkgs/typed-api-spec/package.json b/pkgs/typed-api-spec/package.json index 68a91eb..86b84dd 100644 --- a/pkgs/typed-api-spec/package.json +++ b/pkgs/typed-api-spec/package.json @@ -116,11 +116,6 @@ "require": "./dist/zod/index.js", "import": "./dist/zod/index.mjs" }, - "./zod/validation": { - "types": "./dist/zod/validation.d.ts", - "require": "./dist/zod/validation.js", - "import": "./dist/zod/validation.mjs" - }, "./valibot": { "types": "./dist/valibot/index.d.ts", "require": "./dist/valibot/index.js", diff --git a/pkgs/typed-api-spec/src/zod/index.ts b/pkgs/typed-api-spec/src/zod/index.ts index ef847a6..26359ea 100644 --- a/pkgs/typed-api-spec/src/zod/index.ts +++ b/pkgs/typed-api-spec/src/zod/index.ts @@ -171,3 +171,5 @@ const toResult = ( return Result.error(res.error); } }; + +export * from "./validation";