feat: zod 라이브러리 버전을 4.3.5로 업데이트

This commit is contained in:
2026-01-18 08:27:36 +00:00
parent 116993b3ad
commit 2f05e5a1e1
7 changed files with 17 additions and 21 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
"@sammo-ts/common": "workspace:*",
"es-toolkit": "^1.43.0",
"immer": "^11.1.3",
"zod": "^4.3.4"
"zod": "^4.3.5"
},
"devDependencies": {
"tsdown": "^0.18.4",
@@ -3,6 +3,7 @@ import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { z } from 'zod';
import type { ZodTypeAny } from 'zod';
import {
MapResourceSchema,
ScenarioResourceSchema,
@@ -15,7 +16,7 @@ const __dirname = path.dirname(__filename);
const REPO_ROOT = path.resolve(__dirname, '..', '..', '..');
const RESOURCE_ROOT = path.join(REPO_ROOT, 'resources');
const writeSchema = async (relativePath: string, schema: unknown): Promise<void> => {
const writeSchema = async (relativePath: string, schema: ZodTypeAny): Promise<void> => {
const outputPath = path.join(RESOURCE_ROOT, relativePath);
const jsonSchema = z.toJSONSchema(schema, { target: 'draft-07' });
const serialized = `${JSON.stringify(jsonSchema, null, 4)}\n`;