create-prisma-php-app 1.6.59 → 1.6.61

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 +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -264,7 +264,7 @@ async function createOrUpdateEnvFile(baseDir, content) {
264
264
  }
265
265
  function checkExcludeFiles(destPath) {
266
266
  var _a, _b;
267
- return ((_b = (_a = updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.excludeFiles) === null || _a === void 0 ? void 0 : _a.includes(destPath.replace(/\\/g, "/"))) !== null && _b !== void 0 ? _b : false);
267
+ return ((_b = (_a = updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.excludeFilePath) === null || _a === void 0 ? void 0 : _a.includes(destPath.replace(/\\/g, "/"))) !== null && _b !== void 0 ? _b : false);
268
268
  }
269
269
  async function createDirectoryStructure(baseDir, answer, projectSettings) {
270
270
  console.log("🚀 ~ baseDir:", baseDir);
@@ -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];
@@ -492,7 +492,9 @@ async function main() {
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
+ excludeFilePath: excludeFiles !== null && excludeFiles !== void 0 ? excludeFiles : [],
497
+ filePath: currentDir,
496
498
  };
497
499
  console.log("🚀 ~ main ~ answer:", answer);
498
500
  }
@@ -643,7 +645,7 @@ async function main() {
643
645
  tailwindcss: answer.tailwindcss,
644
646
  websocket: answer.websocket,
645
647
  version,
646
- excludeFiles: (_d = updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.excludeFiles) !== null && _d !== void 0 ? _d : [],
648
+ excludeFiles: (_e = updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.excludeFiles) !== null && _e !== void 0 ? _e : [],
647
649
  };
648
650
  fs.writeFileSync(path.join(projectPath, "prisma-php.json"), JSON.stringify(prismaPhpConfig, null, 2), { flag: "w" });
649
651
  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.61",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",