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