svizzle icon indicating copy to clipboard operation
svizzle copied to clipboard

Use `--if-present` with `npm run` where needed

Open mindrones opened this issue 3 years ago • 0 comments

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.

https://docs.npmjs.com/cli/v7/commands/npm-run-script#if-present

mindrones avatar Mar 16 '21 10:03 mindrones