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-devkit/core): provide actionable warning when a workspace project has missing root property #23473

Merged
merged 1 commit into from Jul 8, 2022

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Jun 30, 2022

The root property is required in a workspace project. Now we issue an actionable warning message when this is missing.

Note: this will become an error in the next major version.

Closes: #21310

@alan-agius4 alan-agius4 added action: review target: patch 2022Q3 Fixit labels Jun 30, 2022
@alan-agius4 alan-agius4 force-pushed the root-validation-workspace branch from 58671d3 to 404383b Compare Jun 30, 2022
@alan-agius4 alan-agius4 requested a review from clydin Jun 30, 2022
@alan-agius4 alan-agius4 force-pushed the root-validation-workspace branch from 2f633d7 to 404383b Compare Jun 30, 2022
@alan-agius4 alan-agius4 changed the title fix(@angular-devkit/core): provide actionable error when a workspace project has missing root property fix(@angular-devkit/core): provide actionable warning when a workspace project has missing root property Jul 7, 2022
@alan-agius4 alan-agius4 force-pushed the root-validation-workspace branch from 404383b to 6390944 Compare Jul 7, 2022
@alan-agius4 alan-agius4 requested review from clydin and removed request for clydin Jul 7, 2022
@alan-agius4 alan-agius4 force-pushed the root-validation-workspace branch from 6390944 to 86e258d Compare Jul 7, 2022
…e project has missing `root` property

The `root` property is required in a workspace project. Now we issue an actionable warning message when this is missing.

Note: this will become an error in the next major version.

Closes: angular#21310
@alan-agius4 alan-agius4 force-pushed the root-validation-workspace branch from 86e258d to 6f99294 Compare Jul 7, 2022
@alan-agius4
Copy link
Collaborator Author

@alan-agius4 alan-agius4 commented Jul 8, 2022

@clydin PTAL

clydin
clydin approved these changes Jul 8, 2022
// TODO: Diagnostic reporting support
// eslint-disable-next-line no-console
console.warn(message);
Copy link
Member

@clydin clydin Jul 8, 2022

Choose a reason for hiding this comment

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

nit: Does the node provide location info? line/column info may be useful for fixing the underlying problem.

Copy link
Collaborator Author

@alan-agius4 alan-agius4 Jul 8, 2022

Choose a reason for hiding this comment

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

It's actually a value, we can change this to be the actual Node quite easily, but I prefer if this was done in a separate PR.

@alan-agius4 alan-agius4 added action: merge and removed action: review labels Jul 8, 2022
@alan-agius4 alan-agius4 merged commit 624e0b0 into angular:main Jul 8, 2022
13 checks passed
@alan-agius4 alan-agius4 deleted the root-validation-workspace branch Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2022Q3 Fixit action: merge target: patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants