-
Notifications
You must be signed in to change notification settings - Fork 335
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
Feature Request - Support Workspaces -w / --workspace=(PATH|PROJECT_NAME) #1099
Comments
Thanks for the suggestion! Is the proposed Is the proposed Trying to clarify if this is more of an alias or a new feature. |
Would also be great to be able to go
Would be the same effect, but would be nicer to refer to workspaces instead of folders. What is driving this suggestion is that If workspaces are going to be the way of referring to sub-projects across all the node tooling, would be great to support that for consitency.
Thanks! Sorry for the delay. Not in GH as often as I need to be :) |
this is really important - I love ncu but now that we are a monorepo with npm workspaces, I need the -w flag exactly as it is proposed. |
You can use npm exec:
But... it show warnings for the workspace projects:
|
I would also love to have this option. An additional bug to have a look at would be the parallel run of
If you have two |
@ghdoergeloh Thanks for reporting. Please create a separate issue with exact steps to reproduce, including your folder layout and ncu config. It is only loosely related to the topic of this issue, which is to add a new option |
I am finding in my pure npm workspaces monorepo this works just great: I have two scripts at the root package. One updates the root, and one updates all the workspaces interactively.
|
Workspace support added in prerelease The API is slightly different than the OP in order to more closely match npm's
How it worksUPDATED 2023-09-23 Upgrade all workspaces:
Upgrade a single workspace:
Upgrade more than one workspace:
Upgrade all workspaces AND the root project:
Upgrade a single workspace AND the root project:
Notes
|
Seems to work exactly the same for me @raineorshine thanks! |
Published to Note that |
Feature Request - Support Workspaces -w / --workspace=(PATH|PROJECT_NAME)
Upgrade all workspaces
ncu -u --workspace=modules/*
ncu -u -w=*
Upgrade just one workspace,
ncu -u --workspace=@metawrap/metawrap-core
ncu -u --workspace=modules//metawrap-core
ncu -u -w=@metawrap/metawrap-core
See:
https://docs.npmjs.com/cli/v7/using-npm/workspaces#running-commands-in-the-context-of-workspaces
The text was updated successfully, but these errors were encountered: