[Feature] Yarn workspaces focus - allow root ident as well as named workspace #6230
Open
2 tasks done
Labels
enhancement
New feature or request
waiting for feedback
Will autoclose in a while unless more data are provided
Describe the user story
As a developer using yarn workspaces I reuse configuration for linting in the root-level workspace, whilst tests and business logic lies in one or more workspaces.
When installing dependencies in the CI I therefore want to
yarn workspaces focus
on the root as well as one or more workspaces.I do not want to get the following error.
Describe the solution you'd like
As
yarn workspaces list
lists the root workspace as.
I want to be able to runyarn workspaces focus . foo bar
in order to focus on the root,foo
andbar
workspaces.Describe the drawbacks of your solution
There may be compatibility concerns if
.
is not already a reserved workspace name.Describe alternatives you've considered
I've tried running the CI in different steps, i.e. running
yarn workspaces focus
to focus on the root first, run linting and thenyarn workspaces focus foo
to focus on thefoo
workspace and run its test. Unfortunately this becomes a hassle when there are many steps, making it required to focus several different times, rather than just installing the dependencies that are required once ahead of time. Furthermore, as private packages require additional authentication, the scope of authentication needs to be valid for longer.The text was updated successfully, but these errors were encountered: