yarn
yarn copied to clipboard
`yarn config` cannot be used to enable `workspaces-experimental` inside of a project which defines workspaces.
Do you want to request a feature or report a bug? Bug
What is the current behavior?
Running most yarn commands in a directory with a package.json
that defines workspaces
will fail with error The workspace feature is currently experimental and needs to be manually enabled - please add "workspaces-experimental true" to your .yarnrc file.
.
This is fine! But when this happens, you may want to enable workspaces using yarn config set workspaces-experimental true
, however this command (and many others) fails with the same error.
My use case here is a Docker container which builds my application. I need to be succinct as possible with my RUN
commands, and it makes sense to be able to enable the feature it needs right before performing the various build tasks.
Current workaround is yarn --cwd / config set workspaces-experimental true
If the current behavior is a bug, please provide the steps to reproduce.
- Disable workspaces:
yarn config set workspaces-experimental false
- cd into any project which has a
package.json
that defines someworkspaces
- try various yarn commands, eg
yarn --help
,yarn config list
, and the most salient oneyarn config set workspaces-experimental true
What is the expected behavior?
Primarily, yarn config
should work so that workspaces can be enabled in that way, but other yarn
commands should work as well.
Please mention your node.js, yarn and operating system version. Ubuntu 16.04 node 8.15.0 yarn 1.13.0
Thanks yall :D