The current behavior with --packageManager yarn defaults to using yarn --silent workspaces info which no longer exists/works with yarn berry (2.0 +). This breaks when adopting the one-version rule in yarn berry monorepos.
Proposed Solution
Introduce a berry packageManager option, that uses yarn workspaces list --json to determine the workspaces in the repo!
Alternatives Considered
Have the default behavior of --packageManager yarn assume yarn berry only and not yarn v1, but this seems overly restrictive if teams want to adopt this package in yarn v1 monorepos.
Problem Statement
The current behavior with
--packageManager yarn
defaults to usingyarn --silent workspaces info
which no longer exists/works with yarn berry (2.0 +). This breaks when adopting the one-version rule in yarn berry monorepos.Proposed Solution
Introduce a
berry
packageManager option, that usesyarn workspaces list --json
to determine the workspaces in the repo!Alternatives Considered
Have the default behavior of
--packageManager yarn
assume yarn berry only and not yarn v1, but this seems overly restrictive if teams want to adopt this package in yarn v1 monorepos.Additional Context
No response