oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.02k stars 2.66k forks source link

Interactive update packages command. #4895

Open raulfdm opened 12 months ago

raulfdm commented 12 months ago

What is the problem this feature would solve?

Both pnpm and yarn have a command where we can select which dependencies we want to update:

CleanShot 2023-09-11 at 09 08 08

This is extremely useful when we want to update only a few dependencies to be updated in a PR, for example.

References

What is the feature you are proposing to solve the problem?

Fine-grained way of selecting the dependencies that would be updated by bun.

What alternatives have you considered?

checking dependency by dependency in npm registry what's the latest version and do upgrade manually those versions.

Considerations

For workspaces, it would be cool if we could specify a flag -r that would read all package.json tracked and group them, like pnpm does.

sirenkovladd commented 12 months ago

It can be related https://github.com/oven-sh/bun/issues/1223

danielbarion commented 11 months ago

it would be nice to have something like this package natively on bun:

https://www.npmjs.com/package/npm-check

bkniffler commented 9 months ago

This seems to work well: https://www.npmjs.com/package/npm-check-updates#npm-check-updates

raulfdm commented 9 months ago

This seems to work well: https://www.npmjs.com/package/npm-check-updates#npm-check-updates

for some reason this package doesn't work well in monorepos controlled by pnpm. I have different outputs when I run:

bunx npm-check-updates -i -ws

vs.

pnpm up -i --latest -r
3dos commented 7 months ago

NCU doesn't work well in monorepos indeed. This is one of the main point stopping me from trying bun in a monorepo. I'd love to see a recursive interactive upgrade command in bun :)

bkniffler commented 7 months ago

FYI @3dos, this solution works very well for monorepo and bun: https://github.com/oven-sh/bun/issues/1223#issuecomment-1817679041

PaulRBerg commented 4 months ago

Can confirm that npm-check-updates works in a non-monorepo environment. You can run it like this:

bunx npm-check-updates -i
iamchathu commented 3 months ago

This should be an built in solution from bun.

Jarred-Sumner commented 3 months ago

This should be an built in solution from bun.

Yes

evermake commented 4 weeks ago

You can use taze with any package manager.