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

Handle --prod deprecation more gracefully #21036

Closed
1 task done
drullo opened this issue Jun 3, 2021 · 1 comment · Fixed by #21047
Closed
1 task done

Handle --prod deprecation more gracefully #21036

drullo opened this issue Jun 3, 2021 · 1 comment · Fixed by #21047
Labels
area: @schematics/angular feature Issue that requests a new feature
Milestone

Comments

@drullo
Copy link

drullo commented Jun 3, 2021

🚀 Feature request

Command

  • update

Description

--prod has been deprecated for ng build. However, I would think that most apps probably have build/deploy automation scripts configured in package.json, which will be affected by this change.

Describe the solution you'd like

I would like to see ng update automate the change of package.json scripts so that --prod is automatically changed to --configuration production.

Describe alternatives you've considered

The alternative is disruptive and painful for the end user... Either manually updating every single project, or developing our own automated process - resulting in varying experiences.

@alan-agius4 alan-agius4 added area: @schematics/angular feature Issue that requests a new feature labels Jun 3, 2021
@ngbot ngbot bot modified the milestone: Backlog Jun 3, 2021
clydin pushed a commit that referenced this issue Jun 16, 2021
With this change we add migration to replace the deprecated `--prod` with `--configuration production` in the scripts section of the package.json.

Closes #21036
@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 Jul 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @schematics/angular feature Issue that requests a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants