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
@remcohaszing why do you think it is a bug in yarn? There is a long discussion happening at yarnpkg/yarn#8580 about this and no conclusion was made. It looks like yarn is on purpose emitting this warning as the workspaces key is intended for develop only environments or private repositories.
Can't we just extend the release pipeline to quickly change the package.json removing this workspaces key?
Yarn is showing a warning for something that is in no way harmful / has no negative impact on the user. The yarn team moved on to yarn 2 (I think even 4 by now?). This issue is for yarn 1, which is no longer actively maintained.
I think several comments in the issue you linked describe it in better detail.
I recommend to move on to a newer package manager, like npm 9 / pnpm / a newer yarn version. If you can’t for whatever reason, I know it’s annoying, but it’s just a warning.
Currently the
package.json
being shipped with the node_module contains aworkspaces
key that is a development artifact only.This is causing
yarn
to display a warning during installwarning Workspaces can only be enabled in private projects.
and should be removed.The text was updated successfully, but these errors were encountered: