3 ms·
npm outdated -l
by djslakor 9y ago
npm outdated -l
- ronjouch 9y agoBut in addition to that, how do you "update all and bump relevant package.json entries, dependencies _and_ devDependencies as appropriate" ? `npm update --save` or `npm update --save-dev` say explicitly "save updates to `dependencies` resp. `devDependencies`", which causes duplication between dependencies and devDependencies. (Say you have a dep foo and a devDep bar and both are outdated: `npm update --save` will bork package.json with an additional incorrect dep bar, and `npm update --save-dev` will bork it with an additional incorrect devDep foo :-/ ) Am I missing something? I understand there are 3rd-party packages providing such functionality, but is there any reason to not cover this feature in npm?
- Osiris 9y agoI use npm-check-updates[1] which will update the package.json file with the latest versions of each dependency. [1] https://www.npmjs.com/package/npm-check-updates https://www.npmjs.com/package/npm-check-updates
- ronjouch 9y agoYeah that's the package I meant with "3rd-party packages providing such functionality", thanks for pointing it out :) ! Was wondering if there was a reason other than "because no one developed it" for such a feature not being in npm core.