This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 51
Yarn: Workspaces can only be enabled in private projects #26
Labels
bug
Something isn't working
Comments
Yarn 1.x? Are you able to work around this issue by setting your project to private? |
Yep. We're still running Yarn 1.x and the project is already set to private and has its own workspaces. I was unaware that Yarn 2 / 3 removed this limitation. Maybe it's not worth the effort to support Yarn 1 but wanted to let you know in case you get other reports. |
Hmmmm, unsure how we could easily fix this. Maybe there's some deployment script that would filter out some properties from package.json? |
You can do this with cat package.json | jq "to_entries | map(select(.key | test(\"workspaces\") | not)) | from_entries | ." > package.without-workspaces.json |
I did a thing, but hit yarnpkg/berry#3609 when trying to automate it. Released a version that does not include Automation will be done in #32. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, I've tried to bump
@wojtekmaj/enzyme-adapter-react-17
to0.6.3
and doing so results in yarn complaining about "Workspaces can only be enabled in private projects".I'm guessing it's caused by this project root
package.json
being used by the NPM module as opposed to the module living in a workspace and the root being a private module and managing all workspaces in the repository. There's a report about it here in yarn repository.The text was updated successfully, but these errors were encountered: