@dongnanyang/deploy-cli 0.12.0 → 0.12.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.
- package/dist/tui/main.js +9 -2
- package/package.json +1 -1
package/dist/tui/main.js
CHANGED
|
@@ -1269,8 +1269,10 @@ function toCreateInput(type, values) {
|
|
|
1269
1269
|
name: (values["name"] ?? "").trim(),
|
|
1270
1270
|
type
|
|
1271
1271
|
};
|
|
1272
|
-
|
|
1273
|
-
|
|
1272
|
+
if (type === "compose") {
|
|
1273
|
+
const services = splitList(values["services"] ?? "");
|
|
1274
|
+
if (services !== void 0) input.services = services;
|
|
1275
|
+
}
|
|
1274
1276
|
if (type === "image") {
|
|
1275
1277
|
input.image = (values["image"] ?? "").trim();
|
|
1276
1278
|
const ports = splitList(values["ports"] ?? "");
|
|
@@ -1431,6 +1433,11 @@ function useWizard(opts = {}) {
|
|
|
1431
1433
|
/** 落盘(ConfirmModal y):走 createManagedProject;失败降级 message 留在预览步可重试 */
|
|
1432
1434
|
function confirm() {
|
|
1433
1435
|
confirmOpen.value = false;
|
|
1436
|
+
if (projectType.value === "compose" && !composeExists(values["name"] ?? "")) {
|
|
1437
|
+
composeReady.value = false;
|
|
1438
|
+
message.value = "compose 文件未就位(状态已变化):请重新放入后按 c 重检,再确认创建";
|
|
1439
|
+
return;
|
|
1440
|
+
}
|
|
1434
1441
|
try {
|
|
1435
1442
|
const result = create(toCreateInput(projectType.value, values));
|
|
1436
1443
|
created.value = result;
|