Skip to content

Instantly share code, notes, and snippets.

@DaneTheory
Last active June 24, 2021 09:43
Show Gist options
  • Select an option

  • Save DaneTheory/92c20146b4c8726faf528641af39f403 to your computer and use it in GitHub Desktop.

Select an option

Save DaneTheory/92c20146b4c8726faf528641af39f403 to your computer and use it in GitHub Desktop.
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - InitFields: Version
[{
"npm:current": {
"ref": "",
"source": [
]
},
"npm:legacy": {
"ref": "",
"source": [
]
},
"yarn:current": {
"ref": "https://yarnpkg.com/configuration/manifest#version",
"source": [
"The version of the package. Usually doesn't have any impact on your project, except when it is a workspace - then its version must match the specified ranges for the workspace to be selected as resolution candidate.",
"_example_:\"version\": \"1.2.3\":_example_"
]
},
"yarn:legacy": {
"ref": "https://classic.yarnpkg.com/en/docs/package-json/#toc-version",
"source": [
"The current version of your package.",
"_example_:{ \n \"version\": \"1.0.0\" \n }:_example_"
]
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment