Skip to content

[Blueprints] Add Blueprint execution compile facade - #3899

Closed
adamziel wants to merge 1 commit into
reject-v2-runtime-php-unsatisfiedfrom
add-blueprint-execution-compile-facade
Closed

[Blueprints] Add Blueprint execution compile facade#3899
adamziel wants to merge 1 commit into
reject-v2-runtime-php-unsatisfiedfrom
add-blueprint-execution-compile-facade

Conversation

@adamziel

@adamziel adamziel commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

What

Adds compileBlueprintForExecution() as a small v1-only facade that returns the compiled Blueprint together with the normalized declaration and run function.

Why

Consumers that need to support multiple Blueprint execution paths need an entrypoint shaped around execution, not the legacy v1-only compileBlueprint() alias. This introduces the public shape without adding Blueprint v2 compiler behavior yet.

Testing

  • npm run format:uncommitted
  • npm exec nx run playground-blueprints:test:vite -- --testFiles=packages/playground/blueprints/src/tests/compile.spec.ts
  • npm exec nx run playground-blueprints:typecheck
  • npm exec nx run playground-blueprints:lint
  • git diff --check
@adamziel
adamziel force-pushed the add-blueprint-execution-compile-facade branch from 3537be2 to 0f75a2a Compare July 3, 2026 14:02
@adamziel
adamziel deleted the branch reject-v2-runtime-php-unsatisfied July 3, 2026 14:42
@adamziel adamziel closed this Jul 3, 2026
adamziel added a commit that referenced this pull request Jul 3, 2026
## What

Adds `compileBlueprintForExecution()` as a small v1-only facade that
returns the compiled Blueprint together with the normalized declaration
and `run` function.

## Why

Consumers that need to support multiple Blueprint execution paths need
an entrypoint shaped around execution, not the legacy v1-only
`compileBlueprint()` alias. This introduces the public shape without
adding Blueprint v2 compiler behavior yet.

Replaces #3899, which was closed when the lower stacked base branch was
deleted after #3898 merged.

## Testing

- `npm run format:uncommitted`
- `npm exec nx run playground-blueprints:test:vite --
--testFiles=packages/playground/blueprints/src/tests/compile.spec.ts`
- `npm exec nx run playground-blueprints:typecheck`
- `npm exec nx run playground-blueprints:lint`
- `git diff --check`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment