rman 2.0.0 → 2.0.1

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/constants.js CHANGED
@@ -1 +1 @@
1
- export const version = '2.0.0';
1
+ export const version = '2.0.1';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rman",
3
3
  "description": "Repository manager",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "dependencies": {
@@ -128,8 +128,22 @@ export class ProgressPanel {
128
128
  failedCount++;
129
129
  if (this.live.enabled) {
130
130
  console.log(colors.red.bold('X'), item.name, duration);
131
+ /* **The replayed log is printed as it was captured, never painted.** It holds the output
132
+ * of every step this item ran, and only the last one failed - so colouring the block red
133
+ * reports the ones that succeeded as failures. Measured on a real build whose `before`
134
+ * ran `rman check` and then `rman lint`: check passed and printed
135
+ * `✅ no circular dependency was found` and `1 succeeded, 0 failed`, and both came back
136
+ * red under the failing package.
137
+ *
138
+ * It also corrupts what the steps themselves coloured. `colors.red()` wraps the whole
139
+ * string, so a line with its own colour keeps it up to its reset and then falls into red
140
+ * for the remainder: `1 succeeded, 0 failed` rendered with `1 succeeded` still green and
141
+ * the comma after it red.
142
+ *
143
+ * The `X` above already says the item failed, and the step that failed printed its own
144
+ * error. */
131
145
  if (item.log.length)
132
- console.log(colors.red(item.log.join('\n')));
146
+ console.log(item.log.join('\n'));
133
147
  }
134
148
  }
135
149
  else {