Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect yarn classic/berry #162

Open
Andarist opened this issue Nov 15, 2021 · 1 comment
Open

Detect yarn classic/berry #162

Andarist opened this issue Nov 15, 2021 · 1 comment

Comments

@Andarist
Copy link
Contributor

It could be useful if packages like preferred-pm could distinguish between those 2 as the difference between them is quite massive.

It seems that there is quite an easy way to do that. The only thing that needs to be checked is the __metadata: field in the lock file. Berry is checking it like this:
https://github.com/yarnpkg/berry/blob/83311e1d4dec7fb6c0ead21f37efa9b687be58b9/packages/yarnpkg-core/sources/scriptUtils.ts#L86-L95

@zkochan
Copy link
Owner

zkochan commented Nov 18, 2021

sounds good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants