concurrently
Advanced tools
Comparing version 8.2.1 to 8.2.2
@@ -39,5 +39,18 @@ /// <reference types="node" /> | ||
/** | ||
* Comma-separated list of chalk colors to use on prefixes. | ||
* A comma-separated list of chalk colors or a string for available styles listed below to use on prefixes. | ||
* If there are more commands than colors, the last color will be repeated. | ||
* | ||
* Available modifiers: | ||
* - `reset`, `bold`, `dim`, `italic`, `underline`, `inverse`, `hidden`, `strikethrough` | ||
* | ||
* Available colors: | ||
* - `black`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white`, `gray`, | ||
* any hex values for colors (e.g. `#23de43`) or `auto` for an automatically picked color | ||
* | ||
* Available background colors: | ||
* - `bgBlack`, `bgRed`, `bgGreen`, `bgYellow`, `bgBlue`, `bgMagenta`, `bgCyan`, `bgWhite` | ||
* | ||
* @see {@link https://www.npmjs.com/package/chalk} for more information. | ||
*/ | ||
prefixColors?: string[]; | ||
prefixColors?: string | string[]; | ||
/** | ||
@@ -44,0 +57,0 @@ * Maximum number of commands to run at once. |
import chalk from 'chalk'; | ||
export declare class PrefixColorSelector { | ||
private colorGenerator; | ||
constructor(customColors?: string[]); | ||
constructor(customColors?: string | string[]); | ||
/** A list of colors that are readable in a terminal. */ | ||
@@ -6,0 +6,0 @@ static get ACCEPTABLE_CONSOLE_COLORS(): ("stderr" | keyof chalk.Chalk | "supportsColor" | "Level" | "Color" | "ForegroundColor" | "BackgroundColor" | "Modifiers")[]; |
@@ -56,3 +56,4 @@ "use strict"; | ||
constructor(customColors = []) { | ||
this.colorGenerator = createColorGenerator(customColors); | ||
const normalizedColors = typeof customColors === 'string' ? [customColors] : customColors; | ||
this.colorGenerator = createColorGenerator(normalizedColors); | ||
} | ||
@@ -59,0 +60,0 @@ /** A list of colors that are readable in a terminal. */ |
{ | ||
"name": "concurrently", | ||
"version": "8.2.1", | ||
"version": "8.2.2", | ||
"description": "Run commands concurrently", | ||
@@ -52,29 +52,29 @@ "main": "index.js", | ||
"@hirez_io/observer-spy": "^2.2.0", | ||
"@swc/core": "^1.3.78", | ||
"@swc/core": "^1.3.93", | ||
"@swc/jest": "^0.2.29", | ||
"@types/jest": "^29.5.3", | ||
"@types/lodash": "^4.14.197", | ||
"@types/node": "^14.18.54", | ||
"@types/shell-quote": "^1.7.1", | ||
"@types/supports-color": "^8.1.1", | ||
"@types/yargs": "^17.0.24", | ||
"@typescript-eslint/eslint-plugin": "^6.4.1", | ||
"@typescript-eslint/parser": "^6.4.1", | ||
"@types/jest": "^29.5.6", | ||
"@types/lodash": "^4.14.200", | ||
"@types/node": "^14.18.62", | ||
"@types/shell-quote": "^1.7.3", | ||
"@types/supports-color": "^8.1.2", | ||
"@types/yargs": "^17.0.29", | ||
"@typescript-eslint/eslint-plugin": "^6.8.0", | ||
"@typescript-eslint/parser": "^6.8.0", | ||
"coveralls-next": "^4.2.0", | ||
"ctrlc-wrapper": "^0.0.4", | ||
"esbuild": "~0.19.2", | ||
"eslint": "^8.47.0", | ||
"esbuild": "~0.19.5", | ||
"eslint": "^8.51.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-import": "^2.28.1", | ||
"eslint-plugin-jest": "^27.2.3", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-jest": "^27.4.2", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"husky": "^8.0.3", | ||
"jest": "^29.6.3", | ||
"jest": "^29.7.0", | ||
"jest-create-mock-instance": "^2.0.0", | ||
"lint-staged": "^13.3.0", | ||
"prettier": "^3.0.2", | ||
"prettier": "^3.0.3", | ||
"safe-publish-latest": "^2.0.0", | ||
"string-argv": "^0.3.2", | ||
"typescript": "~5.1.6" | ||
"typescript": "~5.2.2" | ||
}, | ||
@@ -81,0 +81,0 @@ "files": [ |
@@ -338,3 +338,3 @@ # concurrently | ||
Default: the name of the process, or its index if no name is set. | ||
- `prefixColors`: a list of colors as supported by [chalk](https://www.npmjs.com/package/chalk) or `auto` for an automatically picked color. | ||
- `prefixColors`: a list of colors or a string as supported by [chalk](https://www.npmjs.com/package/chalk) and additional style `auto` for an automatically picked color. | ||
If concurrently would run more commands than there are colors, the last color is repeated, unless if the last color value is `auto` which means following colors are automatically picked to vary. | ||
@@ -341,0 +341,0 @@ Prefix colors specified per-command take precedence over this list. |
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
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
121843
2522