@bablr/cli 0.1.10 → 0.1.11
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/bin/index.js +2 -6
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -37,7 +37,7 @@ if (programOpts.color && !['auto', 'always', 'never'].includes(programOpts.color
|
|
|
37
37
|
const options = {
|
|
38
38
|
...programOpts,
|
|
39
39
|
color:
|
|
40
|
-
(programOpts.color.toLowerCase() === 'auto' && colorSupport.hasBasic) ||
|
|
40
|
+
(programOpts.color.toLowerCase() === 'auto' && colorSupport.hasBasic && !programOpts.verbose) ||
|
|
41
41
|
programOpts.color.toLowerCase() === 'always',
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -48,11 +48,7 @@ const logStderr = (...args) => {
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
if (options.verbose && options.color) {
|
|
51
|
-
|
|
52
|
-
// this means you NEED a parser that ingests a combination of log and output if you
|
|
53
|
-
// want to be able to highlight the complete output without breakage
|
|
54
|
-
// It can be built, but I haven't yet
|
|
55
|
-
throw new Error('Unsupported combination of options: verbose and color');
|
|
51
|
+
throw new Error('TODO support this in a better way than turning off color');
|
|
56
52
|
}
|
|
57
53
|
|
|
58
54
|
const enhancers = options.verbose ? { ...buildDebugEnhancers(logStderr), agastStrategy: null } : {};
|