Make local graph execution optional across composed packages
This commit is contained in:
@@ -250,7 +250,9 @@ function assembleExecutionInstallation(
|
||||
})
|
||||
: undefined;
|
||||
const browserExports = exports.filter(
|
||||
(entry) => entry.execution.kind !== "remote" && entry.execution.targets.includes("browser"),
|
||||
(entry) =>
|
||||
entry.execution.kind !== "remote" &&
|
||||
entry.execution.targets.includes("target:org.quixos.execution.javascript@1"),
|
||||
);
|
||||
if (!browserExports.length) {
|
||||
if (selection.browser) fail(revision, "Package has no browser exports to select");
|
||||
@@ -259,7 +261,7 @@ function assembleExecutionInstallation(
|
||||
}
|
||||
const browser = selectArtifactImplementation(manifest, {
|
||||
...selection.browser,
|
||||
target: "browser",
|
||||
target: "target:org.quixos.execution.javascript@1",
|
||||
compatibility: "quixos-js-module-v1",
|
||||
exports: browserExports.map((entry) => entry.id),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user