@lerna/child-process
Advanced tools
Comparing version 3.13.3 to 3.14.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [3.14.2](https://github.com/lerna/lerna/compare/v3.14.1...v3.14.2) (2019-06-09) | ||
### Bug Fixes | ||
* **child-process:** Ensure adjacent prefixes are always a different color ([5a10146](https://github.com/lerna/lerna/commit/5a10146)) | ||
## [3.13.3](https://github.com/lerna/lerna/compare/v3.13.2...v3.13.3) (2019-04-17) | ||
@@ -8,0 +19,0 @@ |
10
index.js
@@ -15,2 +15,5 @@ "use strict"; | ||
// ever-increasing index ensures colors are always sequential | ||
let currentColor = 0; | ||
function exec(command, args, opts) { | ||
@@ -39,4 +42,2 @@ const options = Object.assign({ stdio: "pipe" }, opts); | ||
const colorName = colorWheel[children % NUM_COLORS]; | ||
const color = chalk[colorName]; | ||
const spawned = spawnProcess(command, args, options); | ||
@@ -48,2 +49,7 @@ | ||
if (prefix) { | ||
const colorName = colorWheel[currentColor % NUM_COLORS]; | ||
const color = chalk[colorName]; | ||
currentColor += 1; | ||
stdoutOpts.tag = `${color.bold(prefix)}:`; | ||
@@ -50,0 +56,0 @@ stderrOpts.tag = `${color(prefix)}:`; |
{ | ||
"name": "@lerna/child-process", | ||
"version": "3.13.3", | ||
"version": "3.14.2", | ||
"description": "Lerna's internal child_process wrapper", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "1496beb6278b001074d970bdd5869bb1f958d998" | ||
"gitHead": "b22345b9870f62f1125e109fcc47d2e4260b9d09" | ||
} |
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
8798
102