Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save DaneTheory/822ed99db1f7d78c8981f3263eb87f78 to your computer and use it in GitHub Desktop.

Select an option

Save DaneTheory/822ed99db1f7d78c8981f3263eb87f78 to your computer and use it in GitHub Desktop.
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - InitFields: Dependencies
[{
"npm:current": {
"ref": "",
"source": [
]
},
"npm:legacy": {
"ref": "",
"source": [
]
},
"yarn:current": {
"ref": "https://yarnpkg.com/configuration/manifest#dependencies",
"source": [
"The set of dependencies that must be made available to the current package in order for it to work properly. Consult the list of supported ranges for more information.",
"_example_:{ \n \"dependencies\": { \n \"webpack\": \"^5.0.0\" \n } \n }:_example_"
]
},
"yarn:legacy": {
"ref": "https://classic.yarnpkg.com/en/docs/package-json/#toc-dependencies",
"source": [
"These are dependencies that are required in both development and production for your package.",
"You can specify an exact version, a minimum version (e.g., '>=') or a range of versions (e.g. '>= ... <').",
"_example_:{ \n \"config\": { \n \"port\": \"8080\" \n } \n } \n }:_example_"
]
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment