这是indexloc提供的服务,不要输入任何密码
Skip to content

yarn@4.0.0-rc.6 not detected as a packageManager #1311

@vic1707

Description

@vic1707

What version of Turborepo are you using?

1.2.14

What package manager are you using / does the bug impact?

Yarn v2/v3 (node_modules linker only)

What operating system are you using?

Mac

Describe the Bug

When you have "packageManager": "yarn@4.0.0-rc.6" in your root package.json, TurboRepo reports an error about not having set that property.

We did not detect an in-use package manager for your project. Please set the "packageManager" property in your root package.json (https://nodejs.org/api/packages.html#packagemanager) or run `npx @turbo/codemod add-package-manager` in the root of your monorepo.

However, running npx @turbo/codemod add-package-manager doesn't report any error. It detects the line and the exact version of yarn but doesn't touch it.

image

Expected Behavior

One of the following

  • Turborepo should accept the use of yarn@4.0.0-rc.6 as a valid packageManager. (prefered)
  • Turborepo should throw a warning about an unsupported version
  • @turbo/codemod should throw a warning about an unsupported version

To Reproduce

init a new turborepo and update yarn to latest available version by using yarn set version canary

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions