concurrently 8.0.1 → 8.1.0

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
@@ -340,7 +340,7 @@ For more details, visit https://github.com/open-cli-tools/concurrently
340
340
  Prefix colors specified per-command take precedence over this list.
341
341
  - `prefixLength`: how many characters to show when prefixing with `command`. Default: `10`
342
342
  - `raw`: whether raw mode should be used, meaning strictly process output will
343
- be logged, without any prefixes, coloring or extra stuff.
343
+ be logged, without any prefixes, coloring or extra stuff. Can be overriden per command.
344
344
  - `successCondition`: the condition to consider the run was successful.
345
345
  If `first`, only the first process to exit will make up the success of the run; if `last`, the last process that exits will determine whether the run succeeds.
346
346
  Anything else means all processes should exit successfully.
@@ -12,5 +12,6 @@ export declare class ExpandArguments implements CommandParser {
12
12
  env?: Record<string, unknown> | undefined;
13
13
  cwd?: string | undefined;
14
14
  prefixColor?: string | undefined;
15
+ raw?: boolean | undefined;
15
16
  };
16
17
  }
@@ -10,5 +10,6 @@ export declare class StripQuotes implements CommandParser {
10
10
  env?: Record<string, unknown> | undefined;
11
11
  cwd?: string | undefined;
12
12
  prefixColor?: string | undefined;
13
+ raw?: boolean | undefined;
13
14
  };
14
15
  }
@@ -30,6 +30,10 @@ export interface CommandInfo {
30
30
  * Color to use on prefix of the command.
31
31
  */
32
32
  prefixColor?: string;
33
+ /**
34
+ * Output command in raw format.
35
+ */
36
+ raw?: boolean;
33
37
  }
34
38
  export interface CloseEvent {
35
39
  command: CommandInfo;
@@ -53,7 +53,7 @@ function concurrently(baseCommands, baseOptions) {
53
53
  prefixColor: prefixColorSelector.getNextColor(),
54
54
  ...command,
55
55
  }, (0, get_spawn_opts_1.getSpawnOpts)({
56
- raw: options.raw,
56
+ raw: command.raw ?? options.raw,
57
57
  env: command.env,
58
58
  cwd: command.cwd || options.cwd,
59
59
  }), options.spawn, options.kill);
@@ -108,6 +108,11 @@ function mapToCommandInfo(command) {
108
108
  prefixColor: command.prefixColor,
109
109
  }
110
110
  : {}),
111
+ ...(command.raw !== undefined
112
+ ? {
113
+ raw: command.raw,
114
+ }
115
+ : {}),
111
116
  };
112
117
  }
113
118
  function parseCommand(command, parsers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "concurrently",
3
- "version": "8.0.1",
3
+ "version": "8.1.0",
4
4
  "description": "Run commands concurrently",
5
5
  "main": "index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -14,10 +14,10 @@
14
14
  },
15
15
  "exports": {
16
16
  ".": {
17
+ "types": "./dist/src/index.d.ts",
17
18
  "import": "./index.mjs",
18
19
  "require": "./index.js",
19
- "default": "./index.js",
20
- "types": "./dist/src/index.d.ts"
20
+ "default": "./index.js"
21
21
  },
22
22
  "./package.json": "./package.json"
23
23
  },