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,