create-prisma-php-app 1.20.503 → 1.20.505

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.
package/dist/index.js CHANGED
@@ -12,7 +12,6 @@ let updateAnswer = null;
12
12
  const nonBackendFiles = [
13
13
  "favicon.ico",
14
14
  "index.php",
15
- "layout.php",
16
15
  "metadata.php",
17
16
  "not-found.php",
18
17
  ];
@@ -430,10 +429,16 @@ async function createDirectoryStructure(baseDir, answer) {
430
429
  },
431
430
  ];
432
431
  if (answer.backendOnly && answer.swaggerDocs) {
433
- directoriesToCopy.push({
434
- srcDir: "/../swagger-docs-layout.php",
435
- destDir: "/src/app/layout.php",
436
- });
432
+ directoriesToCopy.push(
433
+ {
434
+ srcDir: "/swagger-docs-layout.php",
435
+ destDir: "/src/app/layout.php",
436
+ },
437
+ {
438
+ srcDir: "/swagger-docs-index.php",
439
+ destDir: "/src/app/swagger-docs/index.php",
440
+ }
441
+ );
437
442
  }
438
443
  if (answer.prisma) {
439
444
  directoriesToCopy.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.20.503",
3
+ "version": "1.20.505",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",