@ijuantm/simpl-addon 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/install.js +5 -5
  2. 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}(v${version})${COLORS.reset}${' '.repeat(36 - version.length)}│`);
88
+ log(` │ ${COLORS.bold}Available Add-ons${COLORS.reset} ${COLORS.dim}(${version})${COLORS.reset}${' '.repeat(39 - 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} ${COLORS.dim}${name}${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.bold}${relativePath}${COLORS.reset}`);
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 add-on: ${COLORS.cyan}${addonName}${COLORS.reset} ${COLORS.dim}(v${version})${COLORS.reset}${' '.repeat(36 - addonName.length - version.length)}│`);
368
+ log(` │ ${COLORS.bold}Installing Add-on: ${COLORS.cyan}${addonName}${COLORS.reset} ${COLORS.dim}(${version})${COLORS.reset}${' '.repeat(37 - addonName.length - version.length)}│`);
369
369
  log(` ╰${'─'.repeat(62)}╯`);
370
370
  console.log();
371
- log(' 📦 Downloading add-on from CDN...', 'bold');
371
+ log(' 📦 Downloading add-on...', 'bold');
372
372
 
373
373
  let copied, skipped, toMerge;
374
374
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ijuantm/simpl-addon",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "CLI tool to install Simpl framework add-ons.",
5
5
  "main": "install.js",
6
6
  "bin": {