nx 20.5.0-beta.0 → 20.5.0-canary.20250129-3f5e863
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "20.5.0-
|
3
|
+
"version": "20.5.0-canary.20250129-3f5e863",
|
4
4
|
"private": false,
|
5
5
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
6
6
|
"repository": {
|
@@ -82,16 +82,16 @@
|
|
82
82
|
}
|
83
83
|
},
|
84
84
|
"optionalDependencies": {
|
85
|
-
"@nx/nx-darwin-arm64": "20.5.0-
|
86
|
-
"@nx/nx-darwin-x64": "20.5.0-
|
87
|
-
"@nx/nx-freebsd-x64": "20.5.0-
|
88
|
-
"@nx/nx-linux-arm-gnueabihf": "20.5.0-
|
89
|
-
"@nx/nx-linux-arm64-gnu": "20.5.0-
|
90
|
-
"@nx/nx-linux-arm64-musl": "20.5.0-
|
91
|
-
"@nx/nx-linux-x64-gnu": "20.5.0-
|
92
|
-
"@nx/nx-linux-x64-musl": "20.5.0-
|
93
|
-
"@nx/nx-win32-arm64-msvc": "20.5.0-
|
94
|
-
"@nx/nx-win32-x64-msvc": "20.5.0-
|
85
|
+
"@nx/nx-darwin-arm64": "20.5.0-canary.20250129-3f5e863",
|
86
|
+
"@nx/nx-darwin-x64": "20.5.0-canary.20250129-3f5e863",
|
87
|
+
"@nx/nx-freebsd-x64": "20.5.0-canary.20250129-3f5e863",
|
88
|
+
"@nx/nx-linux-arm-gnueabihf": "20.5.0-canary.20250129-3f5e863",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "20.5.0-canary.20250129-3f5e863",
|
90
|
+
"@nx/nx-linux-arm64-musl": "20.5.0-canary.20250129-3f5e863",
|
91
|
+
"@nx/nx-linux-x64-gnu": "20.5.0-canary.20250129-3f5e863",
|
92
|
+
"@nx/nx-linux-x64-musl": "20.5.0-canary.20250129-3f5e863",
|
93
|
+
"@nx/nx-win32-arm64-msvc": "20.5.0-canary.20250129-3f5e863",
|
94
|
+
"@nx/nx-win32-x64-msvc": "20.5.0-canary.20250129-3f5e863"
|
95
95
|
},
|
96
96
|
"nx-migrations": {
|
97
97
|
"migrations": "./migrations.json",
|
@@ -46,9 +46,9 @@ async function default_1(options, context) {
|
|
46
46
|
if (normalized.readyWhenStatus.length && !normalized.parallel) {
|
47
47
|
throw new Error('ERROR: Bad executor config for run-commands - "readyWhen" can only be used when "parallel=true".');
|
48
48
|
}
|
49
|
-
if (options.commands.find((c) => c.prefix || c.color || c.bgColor) &&
|
49
|
+
if (options.commands.find((c) => c.prefix || c.prefixColor || c.color || c.bgColor) &&
|
50
50
|
!options.parallel) {
|
51
|
-
throw new Error('ERROR: Bad executor config for run-commands - "prefix", "color" and "bgColor" can only be set when "parallel=true".');
|
51
|
+
throw new Error('ERROR: Bad executor config for run-commands - "prefix", "prefixColor", "color" and "bgColor" can only be set when "parallel=true".');
|
52
52
|
}
|
53
53
|
try {
|
54
54
|
const result = options.parallel
|
@@ -263,7 +263,14 @@ function addColorAndPrefix(out, config) {
|
|
263
263
|
if (config.prefix) {
|
264
264
|
out = out
|
265
265
|
.split('\n')
|
266
|
-
.map((l) =>
|
266
|
+
.map((l) => {
|
267
|
+
let prefixText = config.prefix;
|
268
|
+
if (config.prefixColor && chalk[config.prefixColor]) {
|
269
|
+
prefixText = chalk[config.prefixColor](prefixText);
|
270
|
+
}
|
271
|
+
prefixText = chalk.bold(prefixText);
|
272
|
+
return l.trim().length > 0 ? `${prefixText} ${l}` : l;
|
273
|
+
})
|
267
274
|
.join('\n');
|
268
275
|
}
|
269
276
|
if (config.color && chalk[config.color]) {
|
@@ -40,6 +40,20 @@
|
|
40
40
|
"type": "string",
|
41
41
|
"description": "Prefix in front of every line out of the output"
|
42
42
|
},
|
43
|
+
"prefixColor": {
|
44
|
+
"type": "string",
|
45
|
+
"description": "Color of the prefix",
|
46
|
+
"enum": [
|
47
|
+
"black",
|
48
|
+
"red",
|
49
|
+
"green",
|
50
|
+
"yellow",
|
51
|
+
"blue",
|
52
|
+
"magenta",
|
53
|
+
"cyan",
|
54
|
+
"white"
|
55
|
+
]
|
56
|
+
},
|
43
57
|
"color": {
|
44
58
|
"type": "string",
|
45
59
|
"description": "Color of the output",
|
Binary file
|