@base44-preview/cli 0.0.19-pr.122.7d06354 → 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.
Files changed (2) hide show
  1. package/dist/index.js +10 -8
  2. 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: () => he({
38087
- message: "What is the name of your project?",
38088
- placeholder: basename(process.cwd()),
38089
- initialValue: basename(process.cwd()),
38090
- validate: (value) => {
38091
- if (!value || value.trim().length === 0) return "Every project deserves a name";
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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.19-pr.122.7d06354",
3
+ "version": "0.0.19-pr.124.a7f34a6",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "bin": {