Created
June 24, 2021 16:15
-
-
Save DaneTheory/359d422dd48acdca372f5f49c92aed5e to your computer and use it in GitHub Desktop.
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - InitFields: DevDependencies
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": "https://yarnpkg.com/configuration/manifest#devDependencies", | |
| "source": [ | |
| "Similar to the 'dependencies' field, except that these dependencies are only installed on local installs and will never be installed by the consumers of your package. Note that because that would lead to different install trees depending on whether the install is made in \"production\" or \"development\" mode, Yarn doesn't offer a way to prevent the installation of dev dependencies at the moment.", | |
| "_example_:{ \n \"devDependencies\": { \n \"webpack\": \"^5.0.0\" \n } \n }:_example_" | |
| ] | |
| }, | |
| "yarn:legacy": { | |
| "ref": "https://classic.yarnpkg.com/en/docs/package-json/#toc-devdependencies", | |
| "source": [ | |
| "These are packages that are only required when developing your package but will not be installed in production.", | |
| "You can specify an exact version, a minimum version (e.g., '>=') or a range of versions (e.g. '>= ... <').", | |
| "_example_:{ \n \"devDependencies\": { \n \"package-2\": \"^0.4.2\" \n } \n }:_example_" | |
| ] | |
| } | |
| }] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment