@team-semicolon/semo-cli 3.0.21 → 3.0.22
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 +23 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -375,16 +375,23 @@ const EXTENSION_PACKAGES = {
|
|
|
375
375
|
// Meta
|
|
376
376
|
meta: { name: "Meta", desc: "SEMO 프레임워크 자체 개발/관리", layer: "meta", detect: ["semo-core", "semo-skills"] },
|
|
377
377
|
};
|
|
378
|
-
//
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
|
|
378
|
+
// 단축명 → 전체 패키지 경로 매핑
|
|
379
|
+
const SHORTNAME_MAPPING = {
|
|
380
|
+
// 하위 패키지명 단축 (discovery → biz/discovery)
|
|
381
|
+
discovery: "biz/discovery",
|
|
382
|
+
design: "biz/design",
|
|
383
|
+
management: "biz/management",
|
|
384
|
+
poc: "biz/poc",
|
|
385
|
+
nextjs: "eng/nextjs",
|
|
386
|
+
spring: "eng/spring",
|
|
382
387
|
ms: "eng/ms",
|
|
383
388
|
infra: "eng/infra",
|
|
384
389
|
qa: "ops/qa",
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
390
|
+
monitor: "ops/monitor",
|
|
391
|
+
improve: "ops/improve",
|
|
392
|
+
// 추가 별칭
|
|
393
|
+
next: "eng/nextjs",
|
|
394
|
+
backend: "eng/spring",
|
|
388
395
|
mvp: "biz/poc",
|
|
389
396
|
};
|
|
390
397
|
// 그룹 이름 목록 (biz, eng, ops)
|
|
@@ -411,9 +418,9 @@ function resolvePackageInput(input) {
|
|
|
411
418
|
groupName = part;
|
|
412
419
|
continue;
|
|
413
420
|
}
|
|
414
|
-
// 2.
|
|
415
|
-
if (part in
|
|
416
|
-
resolvedPackages.push(
|
|
421
|
+
// 2. 단축명 매핑 확인 (discovery → biz/discovery 등)
|
|
422
|
+
if (part in SHORTNAME_MAPPING) {
|
|
423
|
+
resolvedPackages.push(SHORTNAME_MAPPING[part]);
|
|
417
424
|
continue;
|
|
418
425
|
}
|
|
419
426
|
// 3. 직접 패키지명 확인
|
|
@@ -2091,7 +2098,7 @@ program
|
|
|
2091
2098
|
console.log(chalk_1.default.red(`\n알 수 없는 패키지: ${packagesInput}`));
|
|
2092
2099
|
console.log(chalk_1.default.gray(`사용 가능한 그룹: ${PACKAGE_GROUPS.join(", ")}`));
|
|
2093
2100
|
console.log(chalk_1.default.gray(`사용 가능한 패키지: ${Object.keys(EXTENSION_PACKAGES).join(", ")}`));
|
|
2094
|
-
console.log(chalk_1.default.gray(
|
|
2101
|
+
console.log(chalk_1.default.gray(`단축명: ${Object.keys(SHORTNAME_MAPPING).join(", ")}\n`));
|
|
2095
2102
|
process.exit(1);
|
|
2096
2103
|
}
|
|
2097
2104
|
// 그룹 설치인 경우 안내
|
|
@@ -2205,12 +2212,12 @@ program
|
|
|
2205
2212
|
console.log(chalk_1.default.gray(" semo add eng → Engineering 전체 (nextjs, spring, ms, infra)"));
|
|
2206
2213
|
console.log(chalk_1.default.gray(" semo add ops → Operations 전체 (qa, monitor, improve)"));
|
|
2207
2214
|
console.log();
|
|
2208
|
-
//
|
|
2215
|
+
// 단축명 안내
|
|
2209
2216
|
console.log(chalk_1.default.gray("─".repeat(50)));
|
|
2210
|
-
console.log(chalk_1.default.
|
|
2211
|
-
console.log(chalk_1.default.gray(" semo add
|
|
2212
|
-
console.log(chalk_1.default.gray(" semo add
|
|
2213
|
-
console.log(chalk_1.default.gray(" semo add
|
|
2217
|
+
console.log(chalk_1.default.white.bold("⚡ 단축명 지원"));
|
|
2218
|
+
console.log(chalk_1.default.gray(" semo add discovery → biz/discovery"));
|
|
2219
|
+
console.log(chalk_1.default.gray(" semo add qa → ops/qa"));
|
|
2220
|
+
console.log(chalk_1.default.gray(" semo add nextjs → eng/nextjs\n"));
|
|
2214
2221
|
});
|
|
2215
2222
|
// === status 명령어 ===
|
|
2216
2223
|
program
|