From 033401364699d50f3a889038ff221ad5d05b2141 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Fri, 28 Jun 2024 16:33:16 +0200 Subject: [PATCH] fix(app-builder): fix error on update with missing composer source field --- .../src/commands/upgrade/composer/getComposerPackageVersion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-builder/src/commands/upgrade/composer/getComposerPackageVersion.ts b/apps/app-builder/src/commands/upgrade/composer/getComposerPackageVersion.ts index 01afe9f04..0105e7a96 100644 --- a/apps/app-builder/src/commands/upgrade/composer/getComposerPackageVersion.ts +++ b/apps/app-builder/src/commands/upgrade/composer/getComposerPackageVersion.ts @@ -14,7 +14,7 @@ export const getComposerPackageVersion = async (context: UpgradeSubContext): Pro return [ { name: json.name, - repository: parseGitHubUrl(json.source.url), + repository: parseGitHubUrl(json.source?.url ?? ''), version: json.versions[0], }, ] satisfies ParsedEntry[];