create-prisma-php-app 1.6.36 → 1.6.38
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 +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import prompts from "prompts";
|
|
|
8
8
|
import https from "https";
|
|
9
9
|
const __filename = fileURLToPath(import.meta.url);
|
|
10
10
|
const __dirname = path.dirname(__filename);
|
|
11
|
-
let
|
|
11
|
+
let updateAnswer = null;
|
|
12
12
|
function configureBrowserSyncCommand(baseDir, projectSettings) {
|
|
13
13
|
// Identify the base path dynamically up to and including 'htdocs'
|
|
14
14
|
const htdocsIndex = projectSettings.PROJECT_ROOT_PATH.indexOf("\\htdocs\\");
|
|
@@ -255,8 +255,11 @@ async function createDirectoryStructure(baseDir, answer, projectSettings) {
|
|
|
255
255
|
{ src: "/.htaccess", dest: "/.htaccess" },
|
|
256
256
|
{ src: "/../composer.json", dest: "/composer.json" },
|
|
257
257
|
];
|
|
258
|
-
if (
|
|
259
|
-
filesToCopy.push({ src: "
|
|
258
|
+
if (updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.isUpdate) {
|
|
259
|
+
filesToCopy.push({ src: "/.env", dest: "/.env" }, { src: "/tsconfig.json", dest: "/tsconfig.json" });
|
|
260
|
+
if (updateAnswer.tailwindcss) {
|
|
261
|
+
filesToCopy.push({ src: "/postcss.config.js", dest: "/postcss.config.js" }, { src: "/tailwind.config.js", dest: "/tailwind.config.js" });
|
|
262
|
+
}
|
|
260
263
|
}
|
|
261
264
|
// if (answer.websocket) {
|
|
262
265
|
// filesToCopy.push({
|
|
@@ -429,7 +432,7 @@ async function main() {
|
|
|
429
432
|
websocket: useWebsocket,
|
|
430
433
|
};
|
|
431
434
|
answer = await getAnswer(predefinedAnswers);
|
|
432
|
-
|
|
435
|
+
updateAnswer = {
|
|
433
436
|
projectName,
|
|
434
437
|
tailwindcss: useTailwind,
|
|
435
438
|
websocket: useWebsocket,
|