berry icon indicating copy to clipboard operation
berry copied to clipboard

Filter workspaces for outdated packages

Open rightaway opened this issue 4 years ago • 3 comments

Using yarn workspaces means you probably have a lot of dependencies for various projects. If you only want to upgrade dependencies for certain packages you can't see just those packages in yarn outdated and yarn upgrade-interactive. With hundreds of dependencies it becomes impossible to handle.

yarn outdated and yarn upgrade-interactive need a filter to just include certain workspaces and filter out certain workspaces. Or at the very least it should take into account the directory you're running the commands from. Even if you run it from a particular workspace it still shows the dependencies from the entire project.

rightaway avatar Sep 02 '21 12:09 rightaway

@arcanis What do you think about adding a --filter=<workspace_name> flag? I can open a PR for that.

semanser avatar Sep 24 '21 14:09 semanser

@semanser That would be great. Would it be possible for yarn outdated as well as yarn upgrade-interactive?

If I pass --filter @workspace, could that include everything that workspace and everything under it like @workspace/project1 and @workspace/project2?

rightaway avatar Sep 25 '21 19:09 rightaway

Still pending ! I guess the bets solution is to allow the command yarn workspace <workspace> upgrade-interactive to filter and upgrade the selected workspace only

cgx-system avatar Mar 24 '25 14:03 cgx-system