Benefits of Putting Yarn in package.json engines
#5993
Unanswered
Kurt-von-Laven
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the rationale for including a snippet of the following form in the
package.jsonof a Yarn project?My understanding is that
"packageManager": "[email protected]"is used by Corepack, but I am not aware of any tool besides Yarn v1 that reads the Yarn version from theenginesfield. Is it only relevant for Yarn v1 compatibility? I knowyarn initused to add ayarnenginesentry for some version of Yarn, but no version of Yarn v2+ that I tested does this. Hence, I suspect it's safe to remove theenginesentry for Yarn, but I want to make sure I'm not missing something.Beta Was this translation helpful? Give feedback.
All reactions