create-prisma-php-app 1.6.37 → 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.
Files changed (2) hide show
  1. package/dist/index.js +7 -4
  2. 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 UpdateAnswer = null;
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 (UpdateAnswer === null || UpdateAnswer === void 0 ? void 0 : UpdateAnswer.isUpdate) {
259
- filesToCopy.push({ src: "/.env", dest: "/.env" }, { src: "/postcss.config.js", dest: "/postcss.config.js" }, { src: "/tailwind.config.js", dest: "/tailwind.config.js" }, { src: "/tsconfig.json", dest: "/tsconfig.json" });
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
- UpdateAnswer = {
435
+ updateAnswer = {
433
436
  projectName,
434
437
  tailwindcss: useTailwind,
435
438
  websocket: useWebsocket,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.6.37",
3
+ "version": "1.6.38",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",