volta icon indicating copy to clipboard operation
volta copied to clipboard

update all package

Open yukulele opened this issue 2 years ago • 2 comments

What is the best way to know which packages have an update and update them?

I am currently forced to do volta list then for each package listed volta install package-foo@latest

I suggest to add a command to show versions and update them.

Example:

> volta updateall

2 packages ready for update:
  - package-foo    1.2.3  →  2.0.1
  - package-bar    7.2.1  →  7.2.2

update now? (Y/n)

yukulele avatar Feb 05 '23 20:02 yukulele

This is a great idea, and Volta does have enough information to do it today, but it would need some design work to make sure to cover all the scenarios (packages, package managers, and runtimes). The RFC for volta list (volta-cli/rfcs#34) is a good example of tackling that kind of space, if you are interested in picking it up.

chriskrycho avatar Feb 07 '23 14:02 chriskrycho

@chriskrycho any further details on how to tackle this?

gautamprikshit1 avatar Jan 11 '24 14:01 gautamprikshit1