From 64ef4d64b3b110c4108298126621d04a96bab485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 4 Sep 2024 02:40:13 +0800 Subject: [PATCH] fix: optional fields from `publishConfig` --- src/types/packagejson.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types/packagejson.ts b/src/types/packagejson.ts index 90bb054..994540e 100644 --- a/src/types/packagejson.ts +++ b/src/types/packagejson.ts @@ -232,15 +232,15 @@ export interface PackageJson { /** * The registry that will be used if the package is published. */ - registry: string; + registry?: string; /** * The tag that will be used if the package is published. */ - tag: string; + tag?: string; /** * The access level that will be used if the package is published. */ - access: "public" | "restricted"; + access?: "public" | "restricted"; /** * **pnpm-only** *