Skip to content

Commit

Permalink
docs: Updates for --only and --also
Browse files Browse the repository at this point in the history
PR-URL: npm/npm#9024
  • Loading branch information
bengl authored and iarna committed Aug 12, 2015
1 parent 47b673f commit 981107a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/cli/npm-ls.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 14 additions & 0 deletions doc/misc/npm-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 981107a

Please sign in to comment.