@base44-preview/cli 0.0.19-pr.122.8946fef → 0.0.19-pr.124.a7f34a6
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 +10 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38083,14 +38083,16 @@ async function createInteractive(options) {
|
|
|
38083
38083
|
message: "Pick a template",
|
|
38084
38084
|
options: templateOptions
|
|
38085
38085
|
}),
|
|
38086
|
-
name: () =>
|
|
38087
|
-
|
|
38088
|
-
|
|
38089
|
-
|
|
38090
|
-
|
|
38091
|
-
|
|
38092
|
-
|
|
38093
|
-
|
|
38086
|
+
name: () => {
|
|
38087
|
+
return options.name ? Promise.resolve(options.name) : he({
|
|
38088
|
+
message: "What is the name of your project?",
|
|
38089
|
+
placeholder: basename(process.cwd()),
|
|
38090
|
+
initialValue: basename(process.cwd()),
|
|
38091
|
+
validate: (value) => {
|
|
38092
|
+
if (!value || value.trim().length === 0) return "Every project deserves a name";
|
|
38093
|
+
}
|
|
38094
|
+
});
|
|
38095
|
+
},
|
|
38094
38096
|
projectPath: async ({ results }) => {
|
|
38095
38097
|
const suggestedPath = await isDirEmpty() ? `./` : `./${(0, import_lodash.default)(results.name)}`;
|
|
38096
38098
|
return he({
|