Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Aug 28, 2025

When a user tries to ng add a package that doesn't provide its own ng-add schematic, the command will now check for a built-in schematic to use as a fallback.

This improves the user experience for popular packages that do not have native Angular CLI support. The first package supported is tailwindcss.

@clydin clydin added the target: major This PR is targeted for the next major release label Aug 28, 2025
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @angular/cli labels Aug 28, 2025
@clydin clydin force-pushed the ng-add/schematics-fallback branch from fdb9d8d to 05d567b Compare August 28, 2025 20:21
clydin added 2 commits August 28, 2025 16:24
When running `ng add`, the command will now not only check if a package has schematics but also verify that a schematic named `ng-add` is available in the collection.

This prevents cases where a package has a schematics entry in its `package.json` but does not contain the actual `ng-add` schematic, causing the command to fail.
…`ng add` functionality

When a user tries to `ng add` a package that doesn't provide its own `ng-add` schematic, the command will now check for a built-in schematic to use as a fallback.

This improves the user experience for popular packages that do not have native Angular CLI support. The first package supported is `tailwindcss`.
@clydin clydin force-pushed the ng-add/schematics-fallback branch from 05d567b to de1c285 Compare August 28, 2025 20:24
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Aug 28, 2025
@clydin clydin requested a review from alan-agius4 August 29, 2025 00:45
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 29, 2025
@clydin clydin merged commit 301b50d into angular:main Aug 29, 2025
33 checks passed
@clydin clydin deleted the ng-add/schematics-fallback branch August 29, 2025 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: @angular/cli detected: feature PR contains a feature commit target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants