Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(@angular/cli): add fallback support for packages without direct ng add functionality #31065

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

Merged
clydin merged 2 commits into angular:main from clydin:ng-add/schematics-fallback
Aug 29, 2025

Conversation

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
@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
@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
Reviewers

@alan-agius4 alan-agius4 alan-agius4 approved these changes

Assignees
No one assigned
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
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /