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
-
What is the rationale for including a snippet of the following form in the
package.json
of 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 theengines
field. Is it only relevant for Yarn v1 compatibility? I knowyarn init
used to add ayarn
engines
entry for some version of Yarn, but no version of Yarn v2+ that I tested does this. Hence, I suspect it's safe to remove theengines
entry for Yarn, but I want to make sure I'm not missing something.Beta Was this translation helpful? Give feedback.
All reactions