From 3cc17e2d01b87cda17a02f0f38dd64e952bfe896 Mon Sep 17 00:00:00 2001 From: JairusSW Date: Mon, 30 Jun 2025 11:10:07 -0700 Subject: [PATCH] fix: #133 --- src/util/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/util/index.ts b/src/util/index.ts index 79672fc..893b25a 100644 --- a/src/util/index.ts +++ b/src/util/index.ts @@ -151,6 +151,16 @@ export async function readSettingsJson(filePath: string): Promise<{ apiKey: null | string workspaceId: null | string }> { + if (!(await fileExists(filePath))) { + return { + content: '', + email: null, + installationIds: null, + apiKey: null, + workspaceId: null, + } + } + const content = await fs.readFile(filePath, 'utf8') let email: null | string = null