create-prisma-php-app 1.6.59 → 1.6.60

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 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -457,7 +457,7 @@ const readJsonFile = (filePath) => {
457
457
  return JSON.parse(jsonData);
458
458
  };
459
459
  async function main() {
460
- var _a, _b, _c, _d;
460
+ var _a, _b, _c, _d, _e;
461
461
  try {
462
462
  const args = process.argv.slice(2);
463
463
  let projectName = args[0];
@@ -485,14 +485,15 @@ async function main() {
485
485
  const filePath = path.join(currentDir, file);
486
486
  console.log("🚀 ~ localSettings.excludeFiles?.map ~ filePath:", filePath);
487
487
  if (fs.existsSync(filePath))
488
- excludeFiles.push(filePath.replace(/\\/g, "/"));
488
+ excludeFiles.push(filePath);
489
489
  });
490
490
  updateAnswer = {
491
491
  projectName,
492
492
  tailwindcss: (_b = answer === null || answer === void 0 ? void 0 : answer.tailwindcss) !== null && _b !== void 0 ? _b : false,
493
493
  websocket: (_c = answer === null || answer === void 0 ? void 0 : answer.websocket) !== null && _c !== void 0 ? _c : false,
494
494
  isUpdate: true,
495
- excludeFiles: excludeFiles.length > 0 ? excludeFiles : [],
495
+ excludeFiles: (_d = localSettings.excludeFiles) !== null && _d !== void 0 ? _d : [],
496
+ filePath: currentDir,
496
497
  };
497
498
  console.log("🚀 ~ main ~ answer:", answer);
498
499
  }
@@ -643,7 +644,7 @@ async function main() {
643
644
  tailwindcss: answer.tailwindcss,
644
645
  websocket: answer.websocket,
645
646
  version,
646
- excludeFiles: (_d = updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.excludeFiles) !== null && _d !== void 0 ? _d : [],
647
+ excludeFiles: (_e = updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.excludeFiles) !== null && _e !== void 0 ? _e : [],
647
648
  };
648
649
  fs.writeFileSync(path.join(projectPath, "prisma-php.json"), JSON.stringify(prismaPhpConfig, null, 2), { flag: "w" });
649
650
  console.log(`${chalk.green("Success!")} Prisma PHP project successfully created in ${answer.projectName}!`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.6.59",
3
+ "version": "1.6.60",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",