betterstart-cli 0.0.55 → 0.0.56
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/cli.js +3 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -22237,8 +22237,9 @@ async function promptProject(defaultName) {
|
|
|
22237
22237
|
message: "Enter the project name",
|
|
22238
22238
|
placeholder: defaultName ?? "(Leave blank to skip directory creation)",
|
|
22239
22239
|
defaultValue: defaultName ?? ".",
|
|
22240
|
+
initialValue: defaultName ?? ".",
|
|
22240
22241
|
validate: (value) => {
|
|
22241
|
-
if (!value?.trim()) return
|
|
22242
|
+
if (!value?.trim()) return void 0;
|
|
22242
22243
|
if (value.trim() === ".") return void 0;
|
|
22243
22244
|
if (!/^[a-z0-9_-]+$/i.test(value.trim())) {
|
|
22244
22245
|
return "Project name can only contain letters, numbers, hyphens, and underscores";
|
|
@@ -22250,7 +22251,7 @@ async function promptProject(defaultName) {
|
|
|
22250
22251
|
p13.cancel("Setup cancelled.");
|
|
22251
22252
|
process.exit(0);
|
|
22252
22253
|
}
|
|
22253
|
-
return { projectName: projectName.trim() };
|
|
22254
|
+
return { projectName: projectName.trim() || "." };
|
|
22254
22255
|
}
|
|
22255
22256
|
|
|
22256
22257
|
// adapters/next/init/scaffolders/api-routes.ts
|