npm install completions: add --save-peer flag

It's unclear if there is a short flag, since `npm install --help` does not list all short flags.
This commit is contained in:
Lucas Garron
2025-09-05 18:46:53 -07:00
committed by GitHub
parent 898cc3242b
commit b77ea98ee0

View File

@@ -414,6 +414,7 @@ for c in install add i in ins inst insta instal isnt isnta isntal isntall instal
complete -f -c npm -n "__fish_npm_using_command $c" -s P -l save-prod -d 'Save to dependencies'
complete -f -c npm -n "__fish_npm_using_command $c" -s D -l save-dev -d 'Save to devDependencies'
complete -f -c npm -n "__fish_npm_using_command $c" -s O -l save-optional -d 'Save to optionalDependencies'
complete -f -c npm -n "__fish_npm_using_command $c" -l save-peer -d 'Save to peerDependencies'
complete -f -c npm -n "__fish_npm_using_command $c" -s B -l save-bundle -d 'Also save to bundleDependencies'
complete -f -c npm -n "__fish_npm_using_command $c" -s E -l save-exact -d 'Save dependency with exact version'
complete -f -c npm -n "__fish_npm_using_command $c" -s g -l global -d 'Install package globally'