Skip to content

feat: add command to run ngcc manually #1621

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 1 commit into from
Apr 1, 2022

Conversation

atscott
Copy link
Collaborator

@atscott atscott commented Apr 1, 2022

Adds a command to manually run ngcc for a given file. This commit also
refactors the disableNgcc option to indicate that it's disabling the
automatic ngcc run but it can still be triggered manually with the
new command.

The disableAutomaticNgcc option and new command to manually run ngcc
are complementary. We have found that the extension can be overzealous
in automatically running ngcc, especially with solution-style project
configurations (common practice in Nx projects). If a dev server is not
active to rerun ngcc when needed, then the new command gives an easy way
to do that when the disableAutomaticNgcc option is set.

Fixes #991

@atscott atscott added the target: minor This PR is targeted for the next minor release label Apr 1, 2022
Adds a command to manually run ngcc for a given file. This commit also
refactors the `disableNgcc` option to indicate that it's disabling the
_automatic_ `ngcc` run but it can still be triggered manually with the
new command.

The `disableAutomaticNgcc` option and new command to manually run ngcc
are complementary. We have found that the extension can be overzealous
in automatically running ngcc, especially with solution-style project
configurations (common practice in Nx projects). If a dev server is not
active to rerun ngcc when needed, then the new command gives an easy way
to do that when the `disableAutomaticNgcc` option is set.

Fixes angular#991
@atscott atscott requested a review from alxhub April 1, 2022 19:47
@atscott atscott added cla: yes action: merge Ready to merge labels Apr 1, 2022
@atscott atscott merged commit dd0e000 into angular:master Apr 1, 2022
@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 May 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge Ready to merge cla: yes target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New command: Run ngcc
2 participants