Skip to content

script-utils/npm-run

NPM run utilities.

FunctionDescription
npmRunRuns a command using npm checking if the command is overridden in the package.json.
npmRunOptionalRuns 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.
EnumDescription
NpmRunOptionalResultThe result of running an optional npm command.