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) {