Handle optional source-binding configuration in structural package upgrades
This commit is contained in:
@@ -167,11 +167,12 @@ export const planStructure = async (rootPath: string, request: StructuralRequest
|
||||
resolveResource,
|
||||
});
|
||||
if (compiled.resource.kind === "package") {
|
||||
const configuration = JSON.parse(await fs.readFile(path.join(resourceRoot, "quixos.check.json"), "utf8"));
|
||||
const configurationSource = await read(resourceRoot, "quixos.check.json");
|
||||
const configuration = configurationSource === null ? undefined : JSON.parse(configurationSource);
|
||||
// Execution bindings are immutable build outputs owned by checkedArtifacts,
|
||||
// not source edits produced by a structural preview.
|
||||
const artifacts =
|
||||
configuration.backend === "execution"
|
||||
!configuration || configuration.backend === "execution"
|
||||
? []
|
||||
: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user