-
Notifications
You must be signed in to change notification settings - Fork 27k
refactor(compiler-cli): add back ngcc as a no-op with a warning #50045
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
Conversation
JoostK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you please change this to a refactor commit, as the current feat commit cannot be landed for 16.0-rc
This commit adds back `ngcc` as a no-op operation. When invoked it will warn providing details about removing `ngcc`. In Angular 17, this will be removed.
44a89f2 to
b3c1cda
Compare
JoostK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
This shouldn't have any impact on g3, but let's run a presubmit regardless to know there's no sync conflicts. |
dgp1130
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Message looks good to me, I agree we shouldn't add a dependency for terminal coloring just for this so your solution looks fine.
|
caretaker note: none of the files in this PR impacts G3, no need to run presubmit |
|
This PR was merged into the repository by commit cfab3ad. |
This commit adds back `ngcc` as a no-op operation. When invoked it will warn providing details about removing `ngcc`. In Angular 17, this will be removed. PR Close #50045
…lar#50045) This commit adds back `ngcc` as a no-op operation. When invoked it will warn providing details about removing `ngcc`. In Angular 17, this will be removed. PR Close angular#50045
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
The Angular Compatibility Compiler is removed in Angular 16 and therefore,
ngccis no longer available in users' workspaces. In some setups,ngccis invoked in thepostinstallscript of thepackage.json. When updating Angular, in scenarios wherepostinstallis run (e.g. Nx migrations), this throws an error before a migration can remove thengccinvocation. This makes the update process to be more complicated.What is the new behavior?
ngccis available as a no-op operation. When invoked, it will warn, providing details about removingngcc. It gives some context at the tool level to folks who haven't caught up with news thatngccwas removed.Note: In Angular 17, this will be removed.
Does this PR introduce a breaking change?
Other information
I chose to inline some slightly modified functionality from chalk for the colors in the console. I did that to avoid adding an extra dependency for this. I'm open to adding the dependency instead or implementing a different way to get colors in the console in a cross-platform way if preferred.