Skip to content

Commit

Permalink
Add --save-peer as a common option to npm install
Browse files Browse the repository at this point in the history
PR-URL: #1993
Credit: @JakeChampion
Close: #1993
Reviewed-by: @ruyadorno
  • Loading branch information
JakeChampion authored and ruyadorno committed Oct 20, 2020
1 parent ce4724a commit ae09aa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/cli-commands/npm-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ npm install <tarball url>
npm install <folder>

aliases: npm i, npm add
common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run]
common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional|--save-peer] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run]
```

### Description
Expand Down
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const usage = usageUtil(
'\nnpm install <tarball url>' +
'\nnpm install <git:// url>' +
'\nnpm install <github username>/<github project>',
'[--save-prod|--save-dev|--save-optional] [--save-exact] [--no-save]'
'[--save-prod|--save-dev|--save-optional|--save-peer] [--save-exact] [--no-save]'
)

const completion = async (opts, cb) => {
Expand Down

0 comments on commit ae09aa5

Please sign in to comment.