Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save DaneTheory/aad792634b0c418988b77200e3b9b878 to your computer and use it in GitHub Desktop.
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - InitFields: Flat
[{
"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-flat",
"source": [
"If your package only allows one version of a given dependency, and you’d like to enforce the same behavior as 'yarn install --flat' on the command line, set this to 'true'.",
"Note that if your 'package.json' contains '\"flat\": true' and other packages depend on yours (e.g. you are building a library rather than an application), those other packages will also need '\"flat\": true' in their 'package.json' or be installed with 'yarn install --flat' on the command line.",
"_example_:{ \n \"flat\": true \n }:_example_"
]
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment