Skip to content

Commit ae09aa5

Browse files
JakeChampionruyadorno
authored andcommitted
Add --save-peer as a common option to npm install
PR-URL: #1993 Credit: @JakeChampion Close: #1993 Reviewed-by: @ruyadorno
1 parent ce4724a commit ae09aa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/content/cli-commands/npm-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ npm install <tarball url>
2424
npm install <folder>
2525

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

3030
### Description

lib/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const usage = usageUtil(
8383
'\nnpm install <tarball url>' +
8484
'\nnpm install <git:// url>' +
8585
'\nnpm install <github username>/<github project>',
86-
'[--save-prod|--save-dev|--save-optional] [--save-exact] [--no-save]'
86+
'[--save-prod|--save-dev|--save-optional|--save-peer] [--save-exact] [--no-save]'
8787
)
8888

8989
const completion = async (opts, cb) => {

0 commit comments

Comments
 (0)