create-prisma-php-app 1.6.58 → 1.6.59

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
@@ -466,9 +466,6 @@ async function main() {
466
466
  if (projectName) {
467
467
  let useTailwind = args.includes("--tailwindcss");
468
468
  let useWebsocket = args.includes("--websocket");
469
- const currentDir = process.cwd();
470
- const configPath = path.join(currentDir, "prisma-php.json");
471
- const localSettings = readJsonFile(configPath);
472
469
  const predefinedAnswers = {
473
470
  projectName,
474
471
  tailwindcss: useTailwind,
@@ -479,11 +476,16 @@ async function main() {
479
476
  console.log(chalk.red("Installation cancelled."));
480
477
  return;
481
478
  }
479
+ const currentDir = process.cwd();
480
+ const configPath = path.join(currentDir, "prisma-php.json");
481
+ const localSettings = readJsonFile(configPath);
482
+ console.log("🚀 ~ main ~ localSettings:", localSettings);
482
483
  let excludeFiles = [];
483
484
  (_a = localSettings.excludeFiles) === null || _a === void 0 ? void 0 : _a.map((file) => {
484
485
  const filePath = path.join(currentDir, file);
486
+ console.log("🚀 ~ localSettings.excludeFiles?.map ~ filePath:", filePath);
485
487
  if (fs.existsSync(filePath))
486
- excludeFiles.push(path.join(currentDir, file).replace(/\\/g, "/"));
488
+ excludeFiles.push(filePath.replace(/\\/g, "/"));
487
489
  });
488
490
  updateAnswer = {
489
491
  projectName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.6.58",
3
+ "version": "1.6.59",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",