Build and activate checked component packages through normal source authoring (WI-12)
This commit is contained in:
@@ -168,16 +168,21 @@ export const planStructure = async (rootPath: string, request: StructuralRequest
|
||||
});
|
||||
if (compiled.resource.kind === "package") {
|
||||
const configuration = JSON.parse(await fs.readFile(path.join(resourceRoot, "quixos.check.json"), "utf8"));
|
||||
const artifacts = [
|
||||
{
|
||||
file: configuration.bindingOutput as string,
|
||||
after: generateTypeScriptBindings(
|
||||
bindingSchema(compiled),
|
||||
compiled.resource.revision.revisionId,
|
||||
configuration.options,
|
||||
),
|
||||
},
|
||||
];
|
||||
// Execution bindings require the complete workspace plan and are owned
|
||||
// by checkedArtifacts, not a package-only structural preview.
|
||||
const artifacts =
|
||||
configuration.backend === "execution"
|
||||
? []
|
||||
: [
|
||||
{
|
||||
file: configuration.bindingOutput as string,
|
||||
after: generateTypeScriptBindings(
|
||||
bindingSchema(compiled),
|
||||
compiled.resource.revision.revisionId,
|
||||
configuration.options,
|
||||
),
|
||||
},
|
||||
];
|
||||
for (const artifact of artifacts) {
|
||||
const file = request.resourceRoot ? `${request.resourceRoot}/${artifact.file}` : artifact.file;
|
||||
safeFile(file);
|
||||
|
||||
Reference in New Issue
Block a user