diff options
author | Bryan English <bryan@bryanenglish.com> | 2015-08-01 04:39:18 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-08-12 09:28:48 +0300 |
commit | 981107a42296ebd8e676f4ae8dcdc772c90b1cff (patch) | |
tree | cccb521901cc0a2cdac838015ad88d529f9d181a /doc | |
parent | 47b673f18163e5d34a6284739f64e2c173a7246c (diff) |
docs: Updates for --only and --also
PR-URL: https://github.com/npm/npm/pull/9024
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cli/npm-ls.md | 8 | ||||
-rw-r--r-- | doc/misc/npm-config.md | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/doc/cli/npm-ls.md b/doc/cli/npm-ls.md index efd981d67..70835189a 100644 --- a/doc/cli/npm-ls.md +++ b/doc/cli/npm-ls.md @@ -83,6 +83,14 @@ Display only the dependency tree for packages in `dependencies`. Display only the dependency tree for packages in `devDependencies`. +### only + +* Type: String + +When "dev" or "development", is an alias to `dev`. + +When "prod" or "production", is an alias to `production`.` + ## SEE ALSO * npm-config(1) diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md index 03a5c8f3b..d7508e230 100644 --- a/doc/misc/npm-config.md +++ b/doc/misc/npm-config.md @@ -124,6 +124,14 @@ you want your scoped package to be publicly viewable (and installable) set Force npm to always require authentication when accessing the registry, even for `GET` requests. +### also + +* Default: null +* Type: String + +When "dev" or "development" and running local `npm shrinkwrap`, +`npm outdated`, or `npm update`, is an alias for `--dev`. + ### bin-links * Default: `true` @@ -580,10 +588,16 @@ usage. When "dev" or "development" and running local `npm install` without any arguments, only devDependencies (and their dependencies) are installed. +When "dev" or "development" and running local `npm ls`, `npm outdated`, or +`npm update`, is an alias for `--dev`. + When "prod" or "production" and running local `npm install` without any arguments, only non-devDependencies (and their dependencies) are installed. +When "prod" or "production" and running local `npm ls`, `npm outdated`, or +`npm update`, is an alias for `--production`. + ### optional * Default: true |