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 +8 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1158
|
-
${
|
|
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
|
}
|