@base44-preview/cli 0.0.1-pr.16.5e81288 → 0.0.1-pr.16.c796b32

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/index.js CHANGED
@@ -13,6 +13,7 @@ import { access, copyFile, mkdir, readFile, unlink, writeFile } from "node:fs/pr
13
13
  import { parse, printParseErrorCode } from "jsonc-parser";
14
14
  import ky from "ky";
15
15
  import ejs from "ejs";
16
+ import kebabCase from "lodash.kebabcase";
16
17
 
17
18
  //#region src/core/auth/schema.ts
18
19
  const AuthDataSchema = z.object({
@@ -846,13 +847,16 @@ async function create() {
846
847
  message: "Project description (optional)",
847
848
  placeholder: "A brief description of your project"
848
849
  }),
849
- projectPath: () => text({
850
- message: "Where should we create the base44 folder?",
851
- placeholder: "./",
852
- initialValue: "./"
853
- })
850
+ projectPath: async ({ results }) => {
851
+ const suggestedPath = `./${kebabCase(results.name)}`;
852
+ return text({
853
+ message: "Where should we create the base44 folder?",
854
+ placeholder: suggestedPath,
855
+ initialValue: suggestedPath
856
+ });
857
+ }
854
858
  }, { onCancel: onPromptCancel });
855
- const resolvedPath = resolve(projectPath || "./");
859
+ const resolvedPath = resolve(projectPath);
856
860
  await runTask("Creating project...", async () => {
857
861
  return await createProjectFiles({
858
862
  name: name.trim(),
@@ -8,8 +8,8 @@
8
8
  },
9
9
  {
10
10
  "id": "backend-and-client",
11
- "name": "Backend + Client",
12
- "description": "Full-stack project with Base44 backend and a React client application",
11
+ "name": "To Do App - Backend + Client",
12
+ "description": "Full-stack project with Base44 backend, Vite and a React client application",
13
13
  "path": "backend-and-client"
14
14
  }
15
15
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.1-pr.16.5e81288",
3
+ "version": "0.0.1-pr.16.c796b32",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "main": "./dist/cli/index.js",
@@ -41,12 +41,14 @@
41
41
  "globby": "^16.1.0",
42
42
  "jsonc-parser": "^3.3.1",
43
43
  "ky": "^1.14.2",
44
+ "lodash.kebabcase": "^4.1.1",
44
45
  "p-wait-for": "^6.0.0",
45
46
  "zod": "^4.3.5"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@stylistic/eslint-plugin": "^5.6.1",
49
50
  "@types/ejs": "^3.1.5",
51
+ "@types/lodash.kebabcase": "^4.1.9",
50
52
  "@types/node": "^22.10.5",
51
53
  "@typescript-eslint/eslint-plugin": "^8.51.0",
52
54
  "@typescript-eslint/parser": "^8.51.0",