Skip to content

fix(schematics): warn when ng add setup runs with no features selected#3717

Open
armando-navarro wants to merge 1 commit into
angular:mainfrom
armando-navarro:fix/ng-add-empty-features-warning
Open

fix(schematics): warn when ng add setup runs with no features selected#3717
armando-navarro wants to merge 1 commit into
angular:mainfrom
armando-navarro:fix/ng-add-empty-features-warning

Conversation

@armando-navarro

Copy link
Copy Markdown
Collaborator

Fixes #3716

Pressing Enter without toggling any checkbox at the ng add features prompt silently exited with the CLI's stock "Nothing to be done." message, with no indication that Space selects a feature. Adds a warning in that case explaining the checkbox controls and inviting a retry, leaving the existing setup path unchanged when at least one feature is selected.

No unit specs — this file has none today, and building a mocking harness for a one-branch message would be new test infrastructure disproportionate to the change. Verified with a real ng add run against a tarball build: Enter-only at the features prompt now shows the warning and exits cleanly, with no stray files written.

Pressing Enter without toggling any checkbox at the features prompt
silently exited with the CLI's stock "Nothing to be done." message,
giving no indication that Space selects a feature. Print a warning
explaining the checkbox controls and inviting a retry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ng add silently exits with "Nothing to be done." if no features are selected

1 participant