@ahmadubaidillah/cli 1.1.5 → 1.1.7

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/bin.js CHANGED
@@ -34453,7 +34453,12 @@ var { copySync, readFileSync: readFileSync2, writeFileSync: writeFileSync3, exis
34453
34453
  function composeTemplate(templatePath, targetDir, options) {
34454
34454
  const filesDir = join4(templatePath, "files");
34455
34455
  copySync(filesDir, targetDir);
34456
- const entryFiles = ts(join4(targetDir, "**/*.{ts,js,json,tsx,html,md}"));
34456
+ const envExamplePath = join4(targetDir, ".env.example");
34457
+ const envPath = join4(targetDir, ".env");
34458
+ if (existsSync4(envExamplePath) && !existsSync4(envPath)) {
34459
+ copySync(envExamplePath, envPath);
34460
+ }
34461
+ const entryFiles = ts(join4(targetDir, "**/*.{ts,js,json,tsx,html,md,env,env.example}"));
34457
34462
  entryFiles.forEach((file) => {
34458
34463
  let content = readFileSync2(file, "utf8");
34459
34464
  content = content.replace(/{{PROJECT_NAME}}/g, options.projectName);
@@ -11,6 +11,7 @@
11
11
  "hono": "latest",
12
12
  "zod": "latest",
13
13
  "drizzle-orm": "latest",
14
- "postgres": "latest"
14
+ "postgres": "latest",
15
+ "@hono/zod-validator": "latest"
15
16
  }
16
17
  }
@@ -0,0 +1,5 @@
1
+ DATABASE_URL=postgres://user:password@localhost:5432/devforge
2
+ BETTER_AUTH_SECRET=pL9kR2mN5qJ8vW0zX3yB6hT1sD4fG7aH
3
+ BETTER_AUTH_URL=http://localhost:3000
4
+ NODE_ENV=development
5
+ PORT=3000
@@ -15,7 +15,8 @@
15
15
  "zod": "latest",
16
16
  "drizzle-orm": "latest",
17
17
  "postgres": "latest",
18
- "better-auth": "latest"
18
+ "better-auth": "latest",
19
+ "@hono/zod-validator": "latest"
19
20
  },
20
21
  "devDependencies": {
21
22
  "drizzle-kit": "latest",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahmadubaidillah/cli",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "The elite modular boilerplate engine for agentic applications.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "devforge-cli": "dist/bin.js"
17
17
  },
18
18
  "dependencies": {
19
- "@ahmadubaidillah/core": "^1.1.5",
19
+ "@ahmadubaidillah/core": "^1.1.7",
20
20
  "@inquirer/prompts": "latest",
21
21
  "chalk": "latest",
22
22
  "commander": "latest",