Replies: 1 comment 2 replies
-
|
I think the idea is good; but I would prefer waiting for #943 (#1147) instead of just printing it before the step. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I have always found it strange, that
npm update -gdoesn't show what actually was updated, but onlyBefore finding and using topgrade, I had my own script to "update all things" and there I did.
Where
npm outdated --global --jsonoutputs something like this:{ "@angular-devkit/build-angular": { "current": "14.2.8", "wanted": "14.2.13", "latest": "20.1.5", "dependent": "mid-ui-tower", "location": "/home/me/project/node_modules/@angular-devkit/build-angular" }, "@angular/animations": { "current": "14.2.9", "wanted": "14.3.0", "latest": "20.1.6", "dependent": "mid-ui-tower", "location": "/home/me/project/node_modules/@angular/animations" } }And
jq -r '. | keys[] | select( . != "npm")'grabs the names of the outdated packages, except for npm itself.And updates them individually.
So, would you be open to consider integrating a PR based on
npm outdatedif I give it a go, so that before the actual upgrade, topgrade can display a list of packages, their current version, and what it will upgrade to? (JSON parsing of course in Rust)Or would you prefer something like relying on ncu, similar to the Go or Cargo updaters, instead?
Or maybe don't want to bother merging something like this?
Beta Was this translation helpful? Give feedback.
All reactions