You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
feature
What is the current behavior?
If you use ** in a glob for the workspaces option, it treats all projects that the pattern finds as workspaces, and if any are nested, it errors out
What is the desired behavior?
Since yarn is already detecting workspaces that are nested inside of each other, would it be possible to just ignore them (not treat them as workspaces) instead of erroring when they are detected?
Please mention your node.js, yarn and operating system version.
node 10.14
yarn 1.15.2
OS X Mojave
Motivation
If you have more than 1 level of nesting in your workspaces folder, including all projects in the workspaces option can be annoying.
In the example below, I can't just say "workspaces": ["projects/**/*"] because it picks up the subfolder nested project (which is not intended to be a workspace) and also any node modules (such as conflicted-package) that are unable to be hoisted. Instead, I need to have a long list of included folders and follow a strict folder structure.
Ideally, any package.json that is nested under a workspace would just be treated as not a workspace so that we could easily glob all projects.
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
feature
What is the current behavior?
If you use
**
in a glob for the workspaces option, it treats all projects that the pattern finds as workspaces, and if any are nested, it errors outWhat is the desired behavior?
Since yarn is already detecting workspaces that are nested inside of each other, would it be possible to just ignore them (not treat them as workspaces) instead of erroring when they are detected?
Please mention your node.js, yarn and operating system version.
node 10.14
yarn 1.15.2
OS X Mojave
Motivation
If you have more than 1 level of nesting in your workspaces folder, including all projects in the workspaces option can be annoying.
In the example below, I can't just say
"workspaces": ["projects/**/*"]
because it picks up the subfolder nested project (which is not intended to be a workspace) and also any node modules (such as conflicted-package) that are unable to be hoisted. Instead, I need to have a long list of included folders and follow a strict folder structure.Ideally, any package.json that is nested under a workspace would just be treated as not a workspace so that we could easily glob all projects.
The text was updated successfully, but these errors were encountered: