Open raulfdm opened 12 months ago
It can be related https://github.com/oven-sh/bun/issues/1223
it would be nice to have something like this package natively on bun:
This seems to work well: https://www.npmjs.com/package/npm-check-updates#npm-check-updates
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
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 :)
FYI @3dos, this solution works very well for monorepo and bun: https://github.com/oven-sh/bun/issues/1223#issuecomment-1817679041
Can confirm that npm-check-updates
works in a non-monorepo environment. You can run it like this:
bunx npm-check-updates -i
This should be an built in solution from bun.
This should be an built in solution from bun.
Yes
What is the problem this feature would solve?
Both
pnpm
andyarn
have a command where we can select which dependencies we want to update: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.