-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(ng-add): do not overwrite version range specified in ng add
#18365
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(ng-add): do not overwrite version range specified in ng add
#18365
Conversation
bbb22f0
to
cc4b354
Compare
The CLI inserts requested dependencies into the `package.json` before `ng add` schematics run. This means that we usually do not need to insert the dependency into `package.json` files. Alternatively, it could happen that the `ng add` schematics run outside of the CLI `ng add` command, or the requested dependency is dev only. In those cases we insert a version based on the current version placeholder.
ng add
.ng add
cc4b354
to
0fa4b01
Compare
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 after a couple of typo fixes.
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
…8365) * fix(ng-add): do not overwrite version range specified in `ng add` The CLI inserts requested dependencies into the `package.json` before `ng add` schematics run. This means that we usually do not need to insert the dependency into `package.json` files. Alternatively, it could happen that the `ng add` schematics run outside of the CLI `ng add` command, or the requested dependency is dev only. In those cases we insert a version based on the current version placeholder. * fixup! fix(ng-add): do not overwrite version range specified in `ng add` Address feedback
…gular#18365) * fix(ng-add): do not overwrite version range specified in `ng add` The CLI inserts requested dependencies into the `package.json` before `ng add` schematics run. This means that we usually do not need to insert the dependency into `package.json` files. Alternatively, it could happen that the `ng add` schematics run outside of the CLI `ng add` command, or the requested dependency is dev only. In those cases we insert a version based on the current version placeholder. * fixup! fix(ng-add): do not overwrite version range specified in `ng add` Address feedback
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. |
The CLI inserts requested dependencies into the
package.json
beforeng add
schematics run. This means that we usually do not need to insertthe dependency into
package.json
files.Alternatively, it could happen that the
ng add
schematics run outside ofthe CLI
ng add
command, or the requested dependency is dev only. In thosecases we insert a version based on the current version placeholder.