fix: remove duplicate catalog resolver after rebase

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex authored and Julius Marminge committed 2026-03-03 22:31:45 -08:00
1 parent 6c350489b1
commit 5b056cd337
1 file changed
-25
-25
View File
@@ -322,31 +322,6 @@ function validateBundledClientAssets(clientDir: string) {
});
}
function resolveCatalogDependencies(
dependencies: Record<string, unknown>,
catalog: Record<string, unknown>,
dependencySourceLabel: string,
): Record<string, unknown> {
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<string, unknown> | undefined,
catalog: Record<string, unknown>,