brick-engine-cli 1.0.13 → 1.0.14
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.
|
@@ -53,6 +53,15 @@ async function publishCommand(options) {
|
|
|
53
53
|
type: "input",
|
|
54
54
|
name: "gameName",
|
|
55
55
|
message: "Enter your game name:",
|
|
56
|
+
validate: (input) => {
|
|
57
|
+
if (!input || input.trim().length === 0) {
|
|
58
|
+
return "Game name is required.";
|
|
59
|
+
}
|
|
60
|
+
if (input.length > 10) {
|
|
61
|
+
return "Game name cannot exceed 10 characters.";
|
|
62
|
+
}
|
|
63
|
+
return true;
|
|
64
|
+
},
|
|
56
65
|
});
|
|
57
66
|
prompts.push({
|
|
58
67
|
type: "input",
|
package/package.json
CHANGED
|
@@ -66,6 +66,15 @@ export async function publishCommand(options: { url?: string; key?: string }) {
|
|
|
66
66
|
type: "input",
|
|
67
67
|
name: "gameName",
|
|
68
68
|
message: "Enter your game name:",
|
|
69
|
+
validate: (input: string) => {
|
|
70
|
+
if (!input || input.trim().length === 0) {
|
|
71
|
+
return "Game name is required.";
|
|
72
|
+
}
|
|
73
|
+
if (input.length > 10) {
|
|
74
|
+
return "Game name cannot exceed 10 characters.";
|
|
75
|
+
}
|
|
76
|
+
return true;
|
|
77
|
+
},
|
|
69
78
|
});
|
|
70
79
|
|
|
71
80
|
prompts.push({
|