aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/concurrently/dist/src/flow-control/kill-others.js
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-29 11:49:28 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-29 11:49:28 -0700
commitd55b767039605256c736166a942a9138e3eacfd7 (patch)
tree947063b634c50d438a794325f13275e134aa5993 /node_modules/concurrently/dist/src/flow-control/kill-others.js
parent864ce67d89c77d8ef9c3361f80d619853abcf91c (diff)
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/concurrently/dist/src/flow-control/kill-others.js')
-rw-r--r--node_modules/concurrently/dist/src/flow-control/kill-others.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/node_modules/concurrently/dist/src/flow-control/kill-others.js b/node_modules/concurrently/dist/src/flow-control/kill-others.js
deleted file mode 100644
index 1751677..0000000
--- a/node_modules/concurrently/dist/src/flow-control/kill-others.js
+++ /dev/null
@@ -1,35 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.KillOthers = void 0;
-const lodash_1 = __importDefault(require("lodash"));
-const operators_1 = require("rxjs/operators");
-const command_1 = require("../command");
-/**
- * Sends a SIGTERM signal to all commands when one of the commands exits with a matching condition.
- */
-class KillOthers {
- constructor({ logger, conditions, killSignal, }) {
- this.logger = logger;
- this.conditions = lodash_1.default.castArray(conditions);
- this.killSignal = killSignal;
- }
- handle(commands) {
- const conditions = this.conditions.filter((condition) => condition === 'failure' || condition === 'success');
- if (!conditions.length) {
- return { commands };
- }
- const closeStates = commands.map((command) => command.close.pipe((0, operators_1.map)(({ exitCode }) => exitCode === 0 ? 'success' : 'failure'), (0, operators_1.filter)((state) => conditions.includes(state))));
- closeStates.forEach((closeState) => closeState.subscribe(() => {
- const killableCommands = commands.filter((command) => command_1.Command.canKill(command));
- if (killableCommands.length) {
- this.logger.logGlobalEvent(`Sending ${this.killSignal || 'SIGTERM'} to other processes..`);
- killableCommands.forEach((command) => command.kill(this.killSignal));
- }
- }));
- return { commands };
- }
-}
-exports.KillOthers = KillOthers;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage