UNPKG

runok

Version:

NPM scripts on steroids! Replace your scripts with pure JS

23 lines (22 loc) 412 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const result_1 = require("../result"); /** * Prevents execution of next tasks on fail: * * ```js * stopOnFail(); * ``` * * Ignore failures and continue: * * ```js * stopOnFail(false); * ``` * * @param stop */ function stopOnFail(stop = true) { result_1.Result.shouldStopOnFail = stop; } exports.default = stopOnFail;