create-prisma-php-app 1.6.39 → 1.6.41

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 +8 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -168,10 +168,10 @@ function copyRecursiveSync(src, dest) {
168
168
  const isDirectory = exists && stats && stats.isDirectory();
169
169
  console.log("🚀 ~ copyRecursiveSync ~ isDirectory:", isDirectory);
170
170
  if (isDirectory) {
171
- if (fs.existsSync(dest)) {
172
- fs.rmSync(dest, { recursive: true, force: true }); // Remove the directory if it exists
173
- }
174
- fs.mkdirSync(dest, { recursive: true }); // Recreate the directory
171
+ // if (fs.existsSync(dest)) {
172
+ // fs.rmSync(dest, { recursive: true, force: true }); // Remove the directory if it exists
173
+ // }
174
+ // fs.mkdirSync(dest, { recursive: true }); // Recreate the directory
175
175
  fs.readdirSync(src).forEach((childItemName) => {
176
176
  copyRecursiveSync(path.join(src, childItemName), path.join(dest, childItemName));
177
177
  });
@@ -429,6 +429,7 @@ function fetchPackageVersion(packageName) {
429
429
  });
430
430
  }
431
431
  async function main() {
432
+ var _a, _b;
432
433
  try {
433
434
  const args = process.argv.slice(2);
434
435
  let projectName = args[0];
@@ -445,8 +446,8 @@ async function main() {
445
446
  answer = await getAnswer(predefinedAnswers);
446
447
  updateAnswer = {
447
448
  projectName,
448
- tailwindcss: useTailwind,
449
- websocket: useWebsocket,
449
+ tailwindcss: (_a = answer === null || answer === void 0 ? void 0 : answer.tailwindcss) !== null && _a !== void 0 ? _a : false,
450
+ websocket: (_b = answer === null || answer === void 0 ? void 0 : answer.websocket) !== null && _b !== void 0 ? _b : false,
450
451
  isUpdate: true,
451
452
  };
452
453
  console.log("🚀 ~ main ~ answer:", answer);
@@ -569,6 +570,7 @@ async function main() {
569
570
  });
570
571
  }
571
572
  if (updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.isUpdate) {
573
+ console.log("🚀 ~ main ~ updateAnswer:", updateAnswer);
572
574
  const updateUninstallDependencies = [];
573
575
  if (!updateAnswer.tailwindcss) {
574
576
  const tailwindFiles = ["postcss.config.js", "tailwind.config.js"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.6.39",
3
+ "version": "1.6.41",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",