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.
- package/dist/index.js +3 -3
- 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
|
|
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.
|
|
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.
|
|
158
|
+
if (!answer.swaggerDocs) {
|
|
159
159
|
updatedScripts.dev =
|
|
160
160
|
answersToInclude.length > 0
|
|
161
161
|
? `npm-run-all --parallel projectName browser-sync ${answersToInclude.join(
|