grimoire-wizard 0.5.1 → 0.5.2

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/dist/cli.js CHANGED
@@ -1152,10 +1152,14 @@ function renderBanner(name, theme, options) {
1152
1152
  font: "Small",
1153
1153
  horizontalLayout: "default"
1154
1154
  });
1155
- const lines = art.split("\n").map((line) => ` ${line}`).join("\n");
1156
- const banner = GRIMOIRE_GRADIENT(lines);
1157
- return icon ? ` ${icon}
1158
- ${banner}` : banner;
1155
+ const artLines = art.split("\n");
1156
+ const lines = artLines.map((line, i) => {
1157
+ if (icon && i === Math.floor(artLines.length / 2)) {
1158
+ return ` ${icon} ${line}`;
1159
+ }
1160
+ return icon ? ` ${line}` : ` ${line}`;
1161
+ }).join("\n");
1162
+ return GRIMOIRE_GRADIENT(lines);
1159
1163
  } catch {
1160
1164
  return ` ${prefix}${theme.bold(name)}`;
1161
1165
  }