create-prisma-php-app 1.18.508 → 1.18.510

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 +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -514,7 +514,12 @@ async function getAnswer(predefinedAnswers = {}) {
514
514
  inactive: "No",
515
515
  });
516
516
  }
517
- // Execute the questionsArray first to determine the backendOnly option
517
+ // Execute the questionsArray first to determine the backendOnly option const questions: PromptObject<string>[] =
518
+ questionsArray;
519
+ console.log("🚀 ~ questions:", questionsArray);
520
+ if (questionsArray.length === 0 && predefinedAnswers.projectName) {
521
+ return predefinedAnswers;
522
+ }
518
523
  const onCancel = () => {
519
524
  console.log(chalk.red("Operation cancelled by the user."));
520
525
  process.exit(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.18.508",
3
+ "version": "1.18.510",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",