script-utils/npm-run
NPM run utilities.
Functions
Section titled “Functions”| Function | Description |
|---|---|
| npmRun | Runs a command using npm checking if the command is overridden in the package.json. |
| npmRunOptional | Runs a command using npm only if the command is defined in the package.json scripts. If the command is not defined, it is silently skipped. |