create-prisma-php-app 1.20.507 → 1.20.509

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 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ const __dirname = path.dirname(__filename);
11
11
  let updateAnswer = null;
12
12
  const nonBackendFiles = [
13
13
  "favicon.ico",
14
- "src/app/index.php",
14
+ "\\src\\app\\index.php",
15
15
  "metadata.php",
16
16
  "not-found.php",
17
17
  ];
@@ -144,7 +144,7 @@ async function updatePackageJson(baseDir, answer) {
144
144
  );
145
145
  answersToInclude.push("swaggerDocs");
146
146
  }
147
- if (answer.backendOnly && answer.swaggerDocs) {
147
+ if (answer.swaggerDocs) {
148
148
  packageJson.scripts = Object.assign(
149
149
  Object.assign({}, packageJson.scripts),
150
150
  { dev: "node settings/start-dev.js" }
@@ -155,7 +155,7 @@ async function updatePackageJson(baseDir, answer) {
155
155
  // Conditionally add "browser-sync" command
156
156
  updatedScripts["browser-sync"] = browserSyncCommand;
157
157
  // Conditionally set the "dev" command
158
- if (!answer.backendOnly && !answer.swaggerDocs) {
158
+ if (!answer.swaggerDocs) {
159
159
  updatedScripts.dev =
160
160
  answersToInclude.length > 0
161
161
  ? `npm-run-all --parallel projectName browser-sync ${answersToInclude.join(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.20.507",
3
+ "version": "1.20.509",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",