diff options
author | Nikita Lebedev <bloomber111@gmail.com> | 2019-04-06 02:06:33 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2019-09-30 20:46:41 +0300 |
commit | f6b0459a466a2c663dbd549cdc331e7732552dca (patch) | |
tree | ce9a13ea02f8df534230f47bff79a8c96872a4a1 /doc | |
parent | 5c380e5a33d760bb66a4285b032ae5f50af27199 (diff) |
Add option to save package-lock without formatting
Adds a new config `--format-package-lock`, which defaults to true.
If set to false, then the package lock will be written without any
indentation or line breaks.
PR-URL: https://github.com/npm/cli/pull/248
Credit: @bl00mber
Close: #248
Reviewed-by: @isaacs
Note: squashed and edited slightly for style. -- @isaacs
Diffstat (limited to 'doc')
-rw-r--r-- | doc/misc/npm-config.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md index 88d30b62c..f1055a56e 100644 --- a/doc/misc/npm-config.md +++ b/doc/misc/npm-config.md @@ -387,6 +387,13 @@ Makes various commands more forceful. * skips cache when requesting from the registry. * prevents checks against clobbering non-npm files. +### format-package-lock + +* Default: true +* Type: Boolean + +Format `package-lock.json` or `npm-shrinkwrap.json` as a human readable file. + ### fetch-retries * Default: 2 |