From e83c1c16de7b2820924005baec1048fa66188e7c Mon Sep 17 00:00:00 2001 From: Soichiro Miki Date: Thu, 4 Apr 2024 18:40:36 +0900 Subject: [PATCH] Fix reference error in loadConfig.ts --- src/loadConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loadConfig.ts b/src/loadConfig.ts index b9a126d..21915f3 100644 --- a/src/loadConfig.ts +++ b/src/loadConfig.ts @@ -85,7 +85,7 @@ export const loadConfig = async (args: { const outSuffix: string | null = conf.OUT_SUFFIX?.length > 0 ? conf.OUT_SUFFIX - : (args.out_suffix as string).length > 0 + : (args.out_suffix as string)?.length > 0 ? (args.out_suffix as string) : null; if (outSuffix) {