concurrently 10.0.5 → 10.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -103,7 +103,7 @@ Check out documentation and other usage examples in the [`docs` directory](./doc
103
103
  - `handleInput`: when `true`, reads input from `process.stdin`.
104
104
  - `inputStream`: a [`Readable` stream](https://nodejs.org/docs/latest/api/stream.html#readable-streams)
105
105
  to read the input from. Should only be used in the rare instance you would like to stream anything other than `process.stdin`. Overrides `handleInput`.
106
- - `pauseInputStreamOnFinish`: by default, pauses the input stream (`process.stdin` when `handleInput` is enabled, or `inputStream` if provided) when all of the processes have finished. If you need to read from the input stream after `concurrently` has finished, set this to `false`. ([#252](https://github.com/kimmobrunfeldt/concurrently/issues/252)).
106
+ - `pauseInputStreamOnFinish`: by default, pauses the input stream (`process.stdin` when `handleInput` is enabled, or `inputStream` if provided) when all of the processes have finished. If you need to read from the input stream after `concurrently` has finished, set this to `false`. ([#252](https://github.com/open-cli-tools/concurrently/issues/252)).
107
107
  - `killOthersOn`: once the first command exits with one of these statuses, kill other commands.
108
108
  Can be an array containing the strings `success` (status code zero) and/or `failure` (non-zero exit status).
109
109
  - `maxProcesses`: how many processes should run at once.
@@ -139,7 +139,9 @@ Check out documentation and other usage examples in the [`docs` directory](./doc
139
139
  Example:
140
140
 
141
141
  ```js
142
- const concurrently = require('concurrently');
142
+ import path from 'node:path';
143
+ import { concurrently } from 'concurrently';
144
+
143
145
  const { result } = concurrently(
144
146
  [
145
147
  'npm:watch-*',
@@ -148,14 +150,14 @@ const { result } = concurrently(
148
150
  {
149
151
  command: 'watch',
150
152
  name: 'watch',
151
- cwd: path.resolve(__dirname, 'scripts/watchers'),
153
+ cwd: path.resolve(import.meta.dirname, 'scripts/watchers'),
152
154
  },
153
155
  ],
154
156
  {
155
157
  prefix: 'name',
156
158
  killOthersOn: ['failure', 'success'],
157
159
  restartTries: 3,
158
- cwd: path.resolve(__dirname, 'scripts'),
160
+ cwd: path.resolve(import.meta.dirname, 'scripts'),
159
161
  },
160
162
  );
161
163
  result.then(success, failure);
@@ -41,7 +41,7 @@ export class KillOthers {
41
41
  }
42
42
  setTimeout(() => {
43
43
  const killableCommands = commands.filter((command) => Command.canKill(command));
44
- if (killableCommands) {
44
+ if (killableCommands.length) {
45
45
  this.logger.logGlobalEvent(`Sending SIGKILL to ${killableCommands.length} processes..`);
46
46
  killableCommands.forEach((command) => command.kill('SIGKILL'));
47
47
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "concurrently",
3
3
  "type": "module",
4
- "version": "10.0.5",
4
+ "version": "10.0.6",
5
5
  "description": "Run commands concurrently",
6
6
  "author": "Kimmo Brunfeldt",
7
7
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "chalk": "5.6.2",
43
43
  "rxjs": "7.8.2",
44
- "shell-quote": "1.9.0",
44
+ "shell-quote": "1.12.0",
45
45
  "supports-color": "10.2.2",
46
46
  "tree-kill": "1.2.2",
47
47
  "yargs": "18.0.0"