Make local graph execution optional across composed packages
This commit is contained in:
@@ -17,7 +17,7 @@ export function generatePortableClientBindings(
|
||||
unavailable: { key: string; reason: string }[] = [];
|
||||
const seen = new Set<string>();
|
||||
for (const operation of plan.definition.operations) {
|
||||
if (operation.execution.kind === "remote" || !operation.execution.targets.includes(options.target)) {
|
||||
if (operation.execution.kind === "remote" || !operation.availableTargets.includes(options.target)) {
|
||||
unavailable.push({ key: operation.key, reason: "OPERATION_NOT_PORTABLE" });
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user