@team-semicolon/semo-cli 3.0.18 → 3.0.20
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/index.js +15 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -536,7 +536,7 @@ async function showVersionInfo() {
|
|
|
536
536
|
if (cli.needsUpdate) {
|
|
537
537
|
console.log();
|
|
538
538
|
console.log(chalk_1.default.yellow.bold(" ⚠️ CLI 업데이트 가능"));
|
|
539
|
-
console.log(chalk_1.default.cyan(` npm
|
|
539
|
+
console.log(chalk_1.default.cyan(` npm install -g ${PACKAGE_NAME}@latest`));
|
|
540
540
|
}
|
|
541
541
|
else {
|
|
542
542
|
console.log();
|
|
@@ -565,10 +565,21 @@ async function showVersionInfo() {
|
|
|
565
565
|
chalk_1.default.gray(" │"));
|
|
566
566
|
}
|
|
567
567
|
console.log(chalk_1.default.gray(" └────────────────────────┴──────────┴──────────┴────────┘"));
|
|
568
|
-
|
|
568
|
+
// CLI와 다른 패키지 업데이트 가이드 분리
|
|
569
|
+
const cliNeedsUpdate = versionInfos[0]?.needsUpdate;
|
|
570
|
+
const otherNeedsUpdateCount = versionInfos.slice(1).filter((v) => v.needsUpdate).length;
|
|
571
|
+
if (cliNeedsUpdate || otherNeedsUpdateCount > 0) {
|
|
569
572
|
console.log();
|
|
570
|
-
|
|
571
|
-
|
|
573
|
+
if (cliNeedsUpdate) {
|
|
574
|
+
console.log(chalk_1.default.yellow.bold(" ⚠️ CLI 업데이트 가능"));
|
|
575
|
+
console.log(chalk_1.default.cyan(` npm install -g ${PACKAGE_NAME}@latest`));
|
|
576
|
+
}
|
|
577
|
+
if (otherNeedsUpdateCount > 0) {
|
|
578
|
+
if (cliNeedsUpdate)
|
|
579
|
+
console.log();
|
|
580
|
+
console.log(chalk_1.default.yellow.bold(` ⚠️ ${otherNeedsUpdateCount}개 패키지 업데이트 가능`));
|
|
581
|
+
console.log(chalk_1.default.gray(" semo update 명령으로 업데이트하세요."));
|
|
582
|
+
}
|
|
572
583
|
}
|
|
573
584
|
else {
|
|
574
585
|
console.log();
|