@promise-watch/core
Advanced tools
Comparing version 0.0.10 to 0.0.11
import { ExecuteOptions } from "./types"; | ||
export * from "./notifiers/console-notifier"; | ||
export * from "./types"; | ||
export declare function executeJobs(options: ExecuteOptions): Promise<void>; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.executeJobs = void 0; | ||
const run_1 = require("./run"); | ||
const files_1 = require("./files"); | ||
const execute_1 = require("./execute"); | ||
const recursively_run_1 = require("./recursively-run"); | ||
const import_runs_1 = require("./import-runs"); | ||
const filter_runs_1 = require("./filter-runs"); | ||
__exportStar(require("./notifiers/console-notifier"), exports); | ||
__exportStar(require("./types"), exports); | ||
async function executeJobs(options) { | ||
const { dir, notifiers = [], globPath = "runs/**/*.{js,ts}", } = options; | ||
const files = await (0, files_1.importRunsFromPath)(globPath, dir); | ||
const runs = (0, execute_1.filterRunsWithoutRequiredFields)(files); | ||
await Promise.allSettled(runs.map(run => (0, run_1.recursivelyRun)(run, notifiers))); | ||
const files = await (0, import_runs_1.importRunsFromPath)(globPath, dir); | ||
const runs = (0, filter_runs_1.filterRunsWithoutRequiredFields)(files); | ||
await Promise.allSettled(runs.map(run => (0, recursively_run_1.recursivelyRun)(run, notifiers))); | ||
} | ||
exports.executeJobs = executeJobs; | ||
function shutdown() { | ||
(0, run_1.haltRecursion)(); | ||
(0, recursively_run_1.haltRecursion)(); | ||
console.log("HALTING RECURSION"); | ||
process.exit(0); | ||
@@ -17,0 +30,0 @@ } |
{ | ||
"name": "@promise-watch/core", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "author": "Jason Raimondi <jason@raimondi.us> (https://jasonraimondi.com)", |
@@ -1,6 +0,9 @@ | ||
import { haltRecursion, recursivelyRun } from "./run"; | ||
import { haltRecursion, recursivelyRun } from "./recursively-run"; | ||
import { ExecuteOptions } from "./types"; | ||
import { importRunsFromPath } from "./files"; | ||
import { filterRunsWithoutRequiredFields } from "./execute"; | ||
import { importRunsFromPath } from "./import-runs"; | ||
import { filterRunsWithoutRequiredFields } from "./filter-runs"; | ||
export * from "./notifiers/console-notifier" | ||
export * from "./types"; | ||
export async function executeJobs(options: ExecuteOptions) { | ||
@@ -19,2 +22,3 @@ const { | ||
haltRecursion(); | ||
console.log("HALTING RECURSION"); | ||
process.exit(0); | ||
@@ -21,0 +25,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28399
50
485