Created
June 24, 2021 16:52
-
-
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
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-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