Skip to content

fix(@angular/cli): infer schematic defaults correctly when using --project #20690

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
merged 2 commits into from
May 5, 2021
Merged

fix(@angular/cli): infer schematic defaults correctly when using --project #20690

merged 2 commits into from
May 5, 2021

Conversation

alan-agius4
Copy link
Collaborator

Previously, the --project flag was ignored when gathering and merging the schematics defaults from the angular workspace configuration file.

Closes #20666

@google-cla google-cla bot added the cla: yes label May 4, 2021
@alan-agius4 alan-agius4 added the target: rc This PR is targeted for the next release-candidate label May 4, 2021
@alan-agius4 alan-agius4 requested a review from clydin May 4, 2021 11:46
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: merge The PR is ready for merge by the caretaker labels May 4, 2021
…roject`

Previously, the `--project` flag was ignored when gathering and merging the schematics defaults from the angular workspace configuration file.

Closes #20666
@alan-agius4 alan-agius4 requested a review from clydin May 5, 2021 08:45
? ((current as Record<string, unknown>).project as string)
: getProjectName();

return {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot validate the project name at this stage, since the project might now exist yet, example when using ng g lib or ng g app, when under the will invoke ng g c will an unknown project name.

@alan-agius4
Copy link
Collaborator Author

@clydin PTAL

@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label May 5, 2021
@clydin clydin merged commit 4ed1c4f into angular:master May 5, 2021
@alan-agius4 alan-agius4 deleted the project-option-schematic branch May 5, 2021 16:02
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate minimal component in app, with defaultProject lib
2 participants