create-prisma-php-app 1.6.55 → 1.6.56

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 +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -438,7 +438,7 @@ const readJsonFile = (filePath) => {
438
438
  return JSON.parse(jsonData);
439
439
  };
440
440
  async function main() {
441
- var _a, _b, _c;
441
+ var _a, _b, _c, _d;
442
442
  try {
443
443
  const args = process.argv.slice(2);
444
444
  let projectName = args[0];
@@ -464,7 +464,7 @@ async function main() {
464
464
  (_a = localSettings.excludeFiles) === null || _a === void 0 ? void 0 : _a.map((file) => {
465
465
  const filePath = path.join(currentDir, file);
466
466
  if (fs.existsSync(filePath))
467
- excludeFiles.push(path.join(currentDir, file));
467
+ excludeFiles.push(path.join(currentDir, file).replace(/\\/g, "/"));
468
468
  });
469
469
  updateAnswer = {
470
470
  projectName,
@@ -622,6 +622,7 @@ async function main() {
622
622
  tailwindcss: answer.tailwindcss,
623
623
  websocket: answer.websocket,
624
624
  version,
625
+ excludeFiles: (_d = updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.excludeFiles) !== null && _d !== void 0 ? _d : [],
625
626
  };
626
627
  fs.writeFileSync(path.join(projectPath, "prisma-php.json"), JSON.stringify(prismaPhpConfig, null, 2), { flag: "w" });
627
628
  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.55",
3
+ "version": "1.6.56",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",