Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
docs: add --if-present to run-script docs (#20279)
Browse files Browse the repository at this point in the history
PR-URL: #20279
Credit: @aleclarson
Reviewed-By: @iarna
  • Loading branch information
aleclarson authored and zkat committed Apr 18, 2018
1 parent a1c77d6 commit ad7a596
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/cli/npm-run-script.md
Expand Up @@ -68,6 +68,10 @@ you will be given a warning to run `npm install`, just in case you've forgotten.

You can use the `--silent` flag to prevent showing `npm ERR!` output on error.

You can use the `--if-present` flag to avoid exiting with a non-zero exit code
when the script is undefined. This lets you run potentially undefined scripts
without breaking the execution chain.

## SEE ALSO

* npm-scripts(7)
Expand Down

0 comments on commit ad7a596

Please sign in to comment.