Skip to content
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

Interactive update packages command. #4895

Open
raulfdm opened this issue Sep 11, 2023 · 14 comments
Open

Interactive update packages command. #4895

raulfdm opened this issue Sep 11, 2023 · 14 comments
Labels
bun install Something that relates to the npm-compatible client enhancement New feature or request

Comments

@raulfdm
Copy link

raulfdm commented Sep 11, 2023

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.

@raulfdm raulfdm added the enhancement New feature or request label Sep 11, 2023
@sirenkovladd
Copy link
Contributor

It can be related #1223

@danielbarion
Copy link

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

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

@bkniffler
Copy link

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

@raulfdm
Copy link
Author

raulfdm commented Nov 19, 2023

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
Copy link

3dos commented Jan 16, 2024

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
Copy link

FYI @3dos, this solution works very well for monorepo and bun: #1223 (comment)

@PaulRBerg
Copy link

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

bunx npm-check-updates -i

@iamchathu
Copy link

This should be an built in solution from bun.

@Jarred-Sumner
Copy link
Collaborator

This should be an built in solution from bun.

Yes

@evermake
Copy link

You can use taze with any package manager.

@Jarred-Sumner Jarred-Sumner mentioned this issue Oct 7, 2024
52 tasks
@Eveeifyeve
Copy link

I want to work on this badly, but I need some help of what I will need possible to do this.

@Eveeifyeve
Copy link

You can use taze with any package manager.

Yes you can, but what they mean native to bun.

@guest271314

This comment was marked as off-topic.

@cjkihl
Copy link

cjkihl commented Jan 5, 2025

In the meanwhile you can run bunx npm-check-updates -ws --root --format group -i

Breakdown:

Flag Purpose
-ws Check all workspaces
--root Include root package.json
--format group Group by update type (major/minor/patch)
-i Interactive mode

@RiskyMH RiskyMH added the bun install Something that relates to the npm-compatible client label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bun install Something that relates to the npm-compatible client enhancement New feature or request
Projects
None yet
Development

No branches or pull requests