Created
June 24, 2021 17:20
-
-
Save DaneTheory/5ea2dc402f66752ed123120c7691c4dc to your computer and use it in GitHub Desktop.
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - InitFields: Engines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "npm:current": { | |
| "ref": "", | |
| "source": [ | |
| ] | |
| }, | |
| "npm:legacy": { | |
| "ref": "", | |
| "source": [ | |
| ] | |
| }, | |
| "yarn:current": { | |
| "ref": "null", | |
| "source": "null" | |
| }, | |
| "yarn:legacy": { | |
| "ref": "https://classic.yarnpkg.com/en/docs/package-json/#toc-engines", | |
| "source": [ | |
| "The engines specify versions of clients that must be used with your package. This checks against 'process.versions' as well as the current version of yarn.", | |
| "This check follows normal semver rules with one exception. It allows prerelease versions to match semvers that do not explicitly specify a prerelease. For example, '1.4.0-rc.0' matches '>=1.3.0', while it would not match a typical semver check.", | |
| "_example_:{ \n \"engines\": { \n \"node\": \">=4.4.7 <7.0.0\", \n \"zlib\": \"^1.2.8\", \n \"yarn\": \"^0.14.0\" \n } \n }:_example_" | |
| ] | |
| } | |
| }] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment