From ed9d6c7c899548e85792dd8ed1f7f110e465a221 Mon Sep 17 00:00:00 2001 From: Yufan Sheng Date: Fri, 29 Nov 2024 15:52:17 +0800 Subject: [PATCH] fix: make the override optional. --- package.json | 2 +- src/index.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e89065d..56118cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astro-uploader", - "version": "1.2.0", + "version": "1.2.1", "description": "A uploader for uploading the Astro generated files through the S3 API.", "keywords": ["Astro", "S3", "withastro", "opendal"], "bugs": { diff --git a/src/index.ts b/src/index.ts index dfdb4c1..81f32b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -57,14 +57,14 @@ const S3Options = z path: z.string(), keep: z.boolean().optional(), recursive: z.boolean().optional(), - override: z.boolean(), + override: z.boolean().optional(), }), ]), ) .min(1), - keep: z.boolean().default(false), - recursive: z.boolean().default(true), - override: z.boolean().default(false), + keep: z.boolean().optional().default(false), + recursive: z.boolean().optional().default(true), + override: z.boolean().optional().default(false), region: z.string().min(1).default('auto'), endpoint: z.string().url().optional(), bucket: z.string().min(1),