From 5b056cd33750ee7ffb36faea836dc106bdeb973b Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Tue, 3 Mar 2026 18:42:59 -0800 Subject: [PATCH] fix: remove duplicate catalog resolver after rebase Co-authored-by: codex --- scripts/build-desktop-artifact.ts | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts index 70588eb3f147b4103c62ceb36209fb1467f379b4..f81bda482ca55cceb9d1a3329bf43fa923abcc1f 100644 --- a/scripts/build-desktop-artifact.ts +++ b/scripts/build-desktop-artifact.ts @@ -322,31 +322,6 @@ function validateBundledClientAssets(clientDir: string) { }); } -function resolveCatalogDependencies( - dependencies: Record, - catalog: Record, - dependencySourceLabel: string, -): Record { - return Object.fromEntries( - Object.entries(dependencies).map(([dependencyName, spec]) => { - if (typeof spec !== "string" || !spec.startsWith("catalog:")) { - return [dependencyName, spec]; - } - - const catalogKey = spec.slice("catalog:".length).trim(); - const lookupKey = catalogKey.length > 0 ? catalogKey : dependencyName; - const resolvedSpec = catalog[lookupKey]; - if (typeof resolvedSpec !== "string" || resolvedSpec.length === 0) { - throw new BuildScriptError({ - message: `Unable to resolve '${spec}' for ${dependencySourceLabel} dependency '${dependencyName}'. Expected key '${lookupKey}' in root workspace catalog.`, - }); - } - - return [dependencyName, resolvedSpec]; - }), - ); -} - function resolveDesktopRuntimeDependencies( dependencies: Record | undefined, catalog: Record, -- 2.54.0