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