create-kyro 0.4.1 → 0.4.5

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 CHANGED
@@ -288,13 +288,6 @@ function generateProjectFiles(answers, projectDir) {
288
288
  const publicDir = join(projectDir, "public");
289
289
  mkdirSync(pagesDir, { recursive: true });
290
290
  mkdirSync(publicDir, { recursive: true });
291
- if (answers.database === "sqlite") {
292
- envDbSection = "# SQLite (local) - no additional config needed";
293
- } else if (answers.database === "postgres") {
294
- envDbSection = "# Database connection (PostgreSQL)\nDATABASE_URL=postgresql://user:password@localhost:5432/kyro_cms";
295
- } else {
296
- envDbSection = "# MongoDB connection\nMONGODB_URI=mongodb://localhost:27017/kyro_cms";
297
- }
298
291
  const tsconfig = `{
299
292
  "extends": "astro/tsconfigs/strict",
300
293
  "compilerOptions": {
@@ -340,7 +333,7 @@ Visit [https://kyro.dev](https://kyro.dev) for full documentation.
340
333
  const envExample = `# Kyro CMS Configuration
341
334
  # Copy this file to .env and fill in your values
342
335
 
343
- ${answers.database === "sqlite" ? "# SQLite (local) - no additional config needed" : answers.database === "postgres" || answers.database === "mysql" ? "# Database connection (PostgreSQL/MySQL)\nDATABASE_URL=postgresql://user:password@localhost:5432/kyro_cms" : "# MongoDB connection\nMONGODB_URI=mongodb://localhost:27017/kyro_cms"}
336
+ ${answers.database === "sqlite" ? "# SQLite (local) - no additional config needed" : answers.database === "postgres" ? "# Database connection (PostgreSQL)\nDATABASE_URL=postgresql://user:password@localhost:5432/kyro_cms" : "# MongoDB connection\nMONGODB_URI=mongodb://localhost:27017/kyro_cms"}
344
337
 
345
338
  # JWT secret for authentication tokens
346
339
  JWT_SECRET=change-this-to-a-random-64-character-string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kyro",
3
- "version": "0.4.1",
3
+ "version": "0.4.5",
4
4
  "description": "Interactive scaffolding for Kyro CMS projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -44,4 +44,4 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  }
47
- }
47
+ }
@@ -13,14 +13,6 @@ export function generateProjectFiles(
13
13
  mkdirSync(pagesDir, { recursive: true });
14
14
  mkdirSync(publicDir, { recursive: true });
15
15
 
16
- if (answers.database === "sqlite") {
17
- envDbSection = "# SQLite (local) - no additional config needed";
18
- } else if (answers.database === "postgres") {
19
- envDbSection = "# Database connection (PostgreSQL)\nDATABASE_URL=postgresql://user:password@localhost:5432/kyro_cms";
20
- } else {
21
- envDbSection = "# MongoDB connection\nMONGODB_URI=mongodb://localhost:27017/kyro_cms";
22
- }
23
-
24
16
  const tsconfig = `{
25
17
  "extends": "astro/tsconfigs/strict",
26
18
  "compilerOptions": {