-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat(workspaces): --include-workspace-root #3587
Conversation
Probably want to add to usage and/or docs for this. |
This still doesn't solve the problem of "run this command under the context of all workspaces and also my local workspace" Also, given the fact that right now including a workspace also includes all ITS workspaces, we may need to either rethink this, or make sure we're very clear in the docs what this is for. |
Using |
It doesn't, but there is a bit of a mental model for arborist-related commands that if I include a workspace (for instance during install) then its workspaces are also included). I don't think this is a problem. Current thinking is:
It does seem that there is already a bit of a confusion between the mental models for arborist-related things, and the other commands e.g. |
I like the current thinking. Personally i prefer the long form for all my CLI args; it makes things much clearer to think about. |
Treating We're gonna instead use a specific |
The . is particularly nice for configs - i use it in lerna - but for cli invocations this should work the same. |
a773a0f
to
d210175
Compare
Adds a new config item that includes the workspace root when running non-arborist commands (i.e. repo, version, publish). Arborist will need to be udpated to look for this flag to change its behavior to include the workspace root for its functions. This also changes --workspaces to a trinary, so that setting it to false will explicitly exclude workspaces altogether. This is also going to require an arborist change so that it ignores workspaces altogether.
d210175
to
726b61c
Compare
-w .
|
Exception throw isn't done yet, just realized. |
532ba3e
to
0d2ce88
Compare
* [#3632] Fix "cannot read property path of null" error in 'npm dedupe' * fix(shrinkwrap): always set name on the root node
Name is always now set on the root node See: npm/arborist#310
`leven` dropped support for node10 and we still currently have to support it. Moved to https://github.com/ka-weihe/fastest-levenshtein Originally discussed in #2403, but the did-you-mean lib moved quite a bit since then and there were conflicts so I made a new PR PR-URL: #3640 Credit: @wraithgar Close: #3640 Reviewed-by: @nlf
The content in this portion of the docs is auto-generated. PR-URL: #3654 Credit: @wraithgar Close: #3654 Reviewed-by: @nlf
When we accidentally edit the auto-generated portions of the docs, this will catch the error and cause CI to fail. Later phase automated safety check that the early-stage human commenting in the last commit also addresses. Re: #3654 Re: #3630 PR-URL: #3655 Credit: @isaacs Close: #3655 Reviewed-by: @nlf
will filter out a small subset of non-URL-safe characters that still parse properly with `new URL` PR-URL: #3804 Credit: @isaacs Close: #3804 Reviewed-by: @wraithgar
* fix: avoid infinite loops in peer dep replacements * fix: use Intl.Collator for string sorting when available * feat(vuln): expose isDirect
The npm/cli form of npm/arborist#324 Required adding options support to package used for this. PR-URL: #3809 Credit: @isaacs Close: #3809 Reviewed-by: @wraithgar
PR-URL: #3805 Credit: @ethomson Close: #3805 Reviewed-by: @lukekarrys
PR-URL: #3699 Credit: @behnammodi Close: #3699 Reviewed-by: @wraithgar
Adds a new config item that includes the workspace root when running non-arborist commands (i.e. repo, version, publis). This also changes --workspaces to a trinary, so that setting it to false will explicitly exclude workspaces altogether. This is also going to require an arborist change so that it ignores workspaces altogether.
Co-authored-by: isaacs <i@izs.me>
Co-authored-by: isaacs <i@izs.me>
This was implemented in #3890 |
Adds a new config item that includes the workspace root when running
non-arborist commands (i.e. repo, version, publish). Arborist will need
to be udpated to look for this flag to change its behavior to include
the workspace root for its functions.
This also changes --workspaces to a trinary, so that setting it to false
will explicitly exclude workspaces altogether. This is also going to
require an arborist change so that it ignores workspaces altogether.
Closes npm/statusboard#371