Skip to content

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

@HomyeeKing

Description

@HomyeeKing

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions