You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(@angular/cli): confirm ng add action before installation
BREAKING CHANGE:
The `ng add` command will now ask the user to confirm the package and version prior to installing and executing an uninstalled package.
This new behavior allows a user to abort the action if the version selected is not appropriate or if a typo occurred on the command line and an incorrect package would be installed.
A `--skip-confirmation` option has been added to skip the prompt and directly install and execute the package. This option is useful in CI and non-TTY scenarios such as automated scripts.
Copy file name to clipboardExpand all lines: packages/angular/cli/commands/add.json
+5
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,11 @@
35
35
"description": "Display additional details about internal operations during execution.",
36
36
"type": "boolean",
37
37
"default": false
38
+
},
39
+
"skipConfirmation": {
40
+
"description": "Skip asking a confirmation prompt before installing and executing the package. Ensure package name is correct prior to using this option.",
0 commit comments