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

[RRFC] npm update update denpendecy semver in package.json by default #540

Closed
HomyeeKing opened this issue Feb 28, 2022 · 1 comment
Closed

Comments

@HomyeeKing
Copy link

Motivation ("The Why")

Example

foo: "^0.1.1"

foo@latest -> 0.1.3

exec npm update foo

foo: "^0.1.3"

How

Current Behaviour

we need to add --save option now which is verbose, also npm update not support update the devDependencies

Desired Behaviour

there're two solution:

  • npm update, update both dependencies and devDependencies
  • update denpendencies only and -D or --save-dev update devDependencies

by the way, the above has already implemented by npm install, so we can also update dependencies by npm installl

References

  • n/a
@wraithgar
Copy link
Member

the --save flag for update was implemented in v8.3.2 npm/cli#4223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants