Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/playground/blueprints/src/lib/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export interface CompileBlueprintOptions {
* A filesystem to use for the blueprint.
*/
streamBundledFile?: StreamBundledFile;
/**
* Additional steps to add to the blueprint.
*/
additionalSteps?: any[];
}

export async function compileBlueprint(
Expand Down Expand Up @@ -135,6 +139,7 @@ function compileBlueprintJson(
onStepCompleted = () => {},
corsProxy,
streamBundledFile,
additionalSteps,
}: CompileBlueprintOptions = {}
): CompiledBlueprint {
blueprint = structuredClone(blueprint);
Expand All @@ -145,6 +150,9 @@ function compileBlueprintJson(
.filter(isStepDefinition)
.filter(isStepStillSupported),
};

blueprint.steps = [...(blueprint.steps || []), ...(additionalSteps || [])];

for (const step of blueprint.steps!) {
if (!step || typeof step !== 'object') {
continue;
Expand Down
Loading
Loading