@ijuantm/simpl-addon 1.1.0 → 1.1.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/install.js +5 -5
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -85,7 +85,7 @@ const showHelp = () => {
|
|
|
85
85
|
const listAddons = async (version) => {
|
|
86
86
|
console.log();
|
|
87
87
|
log(` ╭${'─'.repeat(62)}╮`);
|
|
88
|
-
log(` │ ${COLORS.bold}Available Add-ons${COLORS.reset} ${COLORS.dim}(
|
|
88
|
+
log(` │ ${COLORS.bold}Available Add-ons${COLORS.reset} ${COLORS.dim}(${version})${COLORS.reset}${' '.repeat(40 - version.length)}│`);
|
|
89
89
|
log(` ╰${'─'.repeat(62)}╯`);
|
|
90
90
|
console.log();
|
|
91
91
|
log(' 📦 Fetching available add-ons...', 'bold');
|
|
@@ -97,7 +97,7 @@ const listAddons = async (version) => {
|
|
|
97
97
|
console.log();
|
|
98
98
|
|
|
99
99
|
if (addons.length === 0) log(` ${COLORS.yellow}⚠${COLORS.reset} No add-ons available`);
|
|
100
|
-
else addons.forEach(name => log(` ${COLORS.cyan}•${COLORS.reset} ${
|
|
100
|
+
else addons.forEach(name => log(` ${COLORS.cyan}•${COLORS.reset} ${name}`));
|
|
101
101
|
} catch (error) {
|
|
102
102
|
console.log();
|
|
103
103
|
log(` ${COLORS.red}✗${COLORS.reset} Failed to fetch add-ons: ${error.message}`, 'red');
|
|
@@ -326,7 +326,7 @@ const mergeFiles = (toMerge) => {
|
|
|
326
326
|
toMerge.forEach(({content, destPath, relativePath, markers}) => {
|
|
327
327
|
const isEnv = path.basename(destPath) === '.env';
|
|
328
328
|
|
|
329
|
-
log(`\n ${COLORS.cyan}•${COLORS.reset} ${COLORS.
|
|
329
|
+
log(`\n ${COLORS.cyan}•${COLORS.reset} ${COLORS.dim}${relativePath}${COLORS.reset}`);
|
|
330
330
|
|
|
331
331
|
try {
|
|
332
332
|
const result = mergeFile(destPath, content, markers, isEnv);
|
|
@@ -365,10 +365,10 @@ const main = async () => {
|
|
|
365
365
|
|
|
366
366
|
console.log();
|
|
367
367
|
log(` ╭${'─'.repeat(62)}╮`);
|
|
368
|
-
log(` │ ${COLORS.bold}Installing
|
|
368
|
+
log(` │ ${COLORS.bold}Installing Add-on: ${COLORS.cyan}${addonName}${COLORS.reset} ${COLORS.dim}(${version})${COLORS.reset}${' '.repeat(38 - addonName.length - version.length)}│`);
|
|
369
369
|
log(` ╰${'─'.repeat(62)}╯`);
|
|
370
370
|
console.log();
|
|
371
|
-
log(' 📦 Downloading add-on
|
|
371
|
+
log(' 📦 Downloading add-on...', 'bold');
|
|
372
372
|
|
|
373
373
|
let copied, skipped, toMerge;
|
|
374
374
|
|