fix(artifacts): align projection provider targets

This commit is contained in:
morluto
2026-07-20 11:31:36 +00:00
parent 0cc9d468c4
commit 560dbda76d
4 changed files with 58 additions and 3 deletions
+9 -1
View File
@@ -129,7 +129,10 @@ export const projectAppleApplication = (
const runtimeFamilies = identifyRuntimeFamilies(all);
const bridgeProjection = identifyBridgeCandidates(
retained.javascript,
[...retained.frameworks, ...retained.native_libraries],
deduplicateComponents([
...retained.executables,
...retained.native_libraries,
]),
parsed.limits.max_components,
);
const limitations = projectionLimitations(
@@ -212,6 +215,11 @@ const retainComponents = <Groups extends Record<string, readonly Component[]>>(
const componentCount = (groups: Record<string, readonly Component[]>): number =>
Object.values(groups).reduce((total, values) => total + values.length, 0);
const deduplicateComponents = (values: readonly Component[]): Component[] =>
[...new Map(values.map((value) => [value.path, value])).values()].sort(
(left, right) => compare(left.path, right.path),
);
const identifyRuntimeFamilies = (all: readonly Component[]) => {
const paths = all.map(({ path }) => path.toLowerCase());
const families = new Set<