create-prisma-php-app 1.20.511 → 1.20.512

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
@@ -149,10 +149,10 @@ async function updatePackageJson(baseDir, answer) {
149
149
  updatedScripts.browserSync = browserSyncCommand;
150
150
  updatedScripts._dev =
151
151
  answersToInclude.length > 0
152
- ? `npm-run-all --parallel projectName browser-sync ${answersToInclude.join(
152
+ ? `npm-run-all --parallel projectName browserSync ${answersToInclude.join(
153
153
  " "
154
154
  )}`
155
- : `npm-run-all --parallel projectName browser-sync`;
155
+ : `npm-run-all --parallel projectName browserSync`;
156
156
  updatedScripts.startDev = `node settings/start-dev.js`;
157
157
  updatedScripts.dev = `npm run startDev`;
158
158
  // Finally, assign the updated scripts back to packageJson
@@ -31,40 +31,33 @@ devProcess.stdout.on("data", (data) => {
31
31
  const lines = dataString.split("\n");
32
32
 
33
33
  lines.forEach((line) => {
34
- if (/Proxying/.test(line) && !loggedLines.has(line)) {
35
- console.log(`${line.trim()}`);
36
- loggedLines.add(line); // Mark this line as logged
37
- } else if (/Access URLs:/.test(line) && !loggedLines.has(line)) {
34
+ if (/Proxying/.test(line)) {
35
+ console.log(line.trim());
36
+ } else if (/Access URLs:/.test(line)) {
38
37
  console.log(chalk.green("[Browsersync] Access URLs:"));
39
- loggedLines.add(line);
40
- } else if (/Local:/.test(line) && !loggedLines.has(line)) {
38
+ } else if (/Local:/.test(line)) {
41
39
  const localUrl = line.match(/Local:\s*(http:\/\/.+)/)[1];
42
40
  formattedLog.local = localUrl;
43
41
  console.log(chalk.white("Local: ") + chalk.cyanBright(localUrl));
44
- loggedLines.add(line);
45
- } else if (/^ {4}External:/.test(line) && !loggedLines.has(line)) {
42
+ } else if (/^ {4}External:/.test(line)) {
46
43
  const externalUrl = line.match(/External:\s*(http:\/\/\S+)/)[1];
47
44
  formattedLog.external = externalUrl;
48
45
  console.log(chalk.white("External: ") + chalk.magentaBright(externalUrl));
49
- loggedLines.add(line);
50
- } else if (/UI:/.test(line) && !loggedLines.has(line)) {
46
+ } else if (/UI:/.test(line)) {
51
47
  const uiUrl = line.match(/UI:\s*(http:\/\/.+)/)[1];
52
48
  formattedLog.ui = uiUrl;
53
49
  console.log(chalk.yellow("UI: ") + chalk.cyanBright(uiUrl));
54
- loggedLines.add(line);
55
- } else if (/UI External:/.test(line) && !loggedLines.has(line)) {
50
+ } else if (/UI External:/.test(line)) {
56
51
  const uiExternalUrl = line.match(/UI External:\s*(http:\/\/.+)/)[1];
57
52
  formattedLog.uiExternal = uiExternalUrl;
58
53
  console.log(
59
54
  chalk.yellow("UI External: ") + chalk.magentaBright(uiExternalUrl)
60
55
  );
61
- loggedLines.add(line);
62
- } else if (/Watching files/.test(line) && !loggedLines.has(line)) {
56
+ } else if (/Watching files/.test(line)) {
63
57
  console.log(chalk.blue("[Browsersync] Watching files..."));
64
58
  const outputPath = "./settings/bs-output.json";
65
59
  writeFileSync(outputPath, JSON.stringify(formattedLog, null, 2), "utf-8");
66
60
  console.log(`Browser-sync output saved to ${outputPath}`);
67
- loggedLines.add(line);
68
61
  }
69
62
  });
70
63
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.20.511",
3
+ "version": "1.20.512",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",