create-prisma-php-app 1.6.27 → 1.6.29

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 +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -463,8 +463,10 @@ async function main() {
463
463
  dependencies.push("npm-run-all");
464
464
  }
465
465
  await installDependencies(projectPath, dependencies, true);
466
- execSync(`npx prisma init`, { stdio: "inherit" });
467
- execSync(`npx tsc --init`, { stdio: "inherit" });
466
+ if (!projectName) {
467
+ execSync(`npx prisma init`, { stdio: "inherit" });
468
+ execSync(`npx tsc --init`, { stdio: "inherit" });
469
+ }
468
470
  if (answer.tailwindcss) {
469
471
  execSync(`npx tailwindcss init -p`, { stdio: "inherit" });
470
472
  }
@@ -491,6 +493,7 @@ async function main() {
491
493
  PHP_ROOT_PATH_EXE: "D:\\\\xampp\\\\php\\\\php.exe",
492
494
  PHP_GENERATE_CLASS_PATH: "src/lib/prisma/classes",
493
495
  };`;
496
+ console.log("🚀 ~ main ~ settingsCode:", settingsCode);
494
497
  fs.writeFileSync(settingsPath, settingsCode);
495
498
  // Create public directory
496
499
  fs.mkdirSync(path.join(projectPath, "public"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.6.27",
3
+ "version": "1.6.29",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",