Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(angular): execute wrapped schematics post tasks and log messages #22780

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Apr 11, 2024

Current Behavior

When running wrapped Angular CLI schematics:

  • tasks scheduled to run after the generation are not executed
  • the context.logger methods are no-op

Expected Behavior

When running wrapped Angular CLI schematics:

  • tasks scheduled to run after the generation should be executed
  • the context.logger methods should correctly log messages

The wrapAngularDevkitSchematic will now return a function (the generator) that returns a GeneratorCallback, which will run the wrapped schematic post tasks. Consuming generators will need to return the value returned by the wrapped schematic invocation.

Related Issue(s)

Fixes #22390

@leosvelperez leosvelperez self-assigned this Apr 11, 2024
@leosvelperez leosvelperez requested review from a team as code owners April 11, 2024 14:00
Copy link

vercel bot commented Apr 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Apr 11, 2024 2:07pm

@leosvelperez leosvelperez merged commit d7f1b3d into nrwl:master Apr 11, 2024
6 checks passed
@leosvelperez leosvelperez deleted the angular/wrapped-schematics-post-tasks-and-logger branch April 11, 2024 14:57
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Angular Schematic Context is Being Ignored
2 participants