-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bun update
: update all dependencies to latest version
#1372
Comments
This issue and #1223 are quite similar, and my comment on 1223 is relevant here:
|
For the fastest implementation, I made a PR in ncu: |
This was introduced in Bun 0.8! 🎉 |
Glad to see
|
@michaelhays the upcoming |
A nice tool is npm-check-updates: bun x npm-check-updates -ui It even works in workspaces! bun x npm-check-updates -ui -ws |
|
What is the problem this feature would solve?
easily updating all dependencies of your project to the latest version. removing the lockfile will do this, but it doesnt update package.json with the new versions. it's handy to be able to see what version of a package you're using by looking into package.json, and bumping thse values manually or by
bun install package1 package2 package3 package4 ...
is tedious. currently,bun update
is aliased to install, and this works for passing package names directly, but i propose adding real command to update all packages.i brought it in the discord here
What is the feature you are proposing to solve the problem?
i'm proposing an api similar/identical to
pnpm update
:bun update
with no extra arguments would update all packages to the latest version allowed by the specifier in package.json, then bump up the entry in package.json to only allow that version and newer ones; as in, rewrite^1.0.0
to^1.5.0
, not^2.0.0
.at the same time, it would be useful if this told the user if the

latest
tag of each package was newer than the range the package specifies. something like how pnpm will do this "(v is available)" message.this would be useful as when installing a package, the specifier doesnt allow for major versions to get bumped, so a little note that a major update exists may be helpful.
pnpm update
/pnpm install
, i think bun's implementation should always show any major out of date packages, so the user is aware of the package releases. while testing behavior of various package managers, i just now learned thatformdata-node@5
was released two months ago.a
--latest
flag which does updates each package to it'slatest
tag.What alternatives have you considered?
bun install <every package name>
to achieve similar behaviorbun install a b c d e ...
The text was updated successfully, but these errors were encountered: