create-prisma-php-app 1.6.49 → 1.6.50

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 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -318,9 +318,9 @@ MAIL_FROM_NAME=""`;
318
318
  async function getAnswer(predefinedAnswers = {}) {
319
319
  var _a, _b, _c;
320
320
  console.log("🚀 ~ predefinedAnswers:", predefinedAnswers);
321
- const questions = [];
321
+ const questionsArray = [];
322
322
  if (!predefinedAnswers.projectName) {
323
- questions.push({
323
+ questionsArray.push({
324
324
  type: "text",
325
325
  name: "projectName",
326
326
  message: "What is your project named?",
@@ -328,7 +328,7 @@ async function getAnswer(predefinedAnswers = {}) {
328
328
  });
329
329
  }
330
330
  if (!predefinedAnswers.tailwindcss) {
331
- questions.push({
331
+ questionsArray.push({
332
332
  type: "toggle",
333
333
  name: "tailwindcss",
334
334
  message: `Would you like to use ${chalk.blue("Tailwind CSS")}?`,
@@ -338,7 +338,7 @@ async function getAnswer(predefinedAnswers = {}) {
338
338
  });
339
339
  }
340
340
  if (!predefinedAnswers.websocket) {
341
- questions.push({
341
+ questionsArray.push({
342
342
  type: "toggle",
343
343
  name: "websocket",
344
344
  message: `Would you like to use ${chalk.blue("Websocket")}?`,
@@ -347,9 +347,10 @@ async function getAnswer(predefinedAnswers = {}) {
347
347
  inactive: "No",
348
348
  });
349
349
  }
350
+ const questions = questionsArray;
350
351
  console.log("🚀 ~ questions:", questions);
351
352
  const onCancel = () => {
352
- return null;
353
+ return false;
353
354
  };
354
355
  try {
355
356
  const response = await prompts(questions, { onCancel });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.6.49",
3
+ "version": "1.6.50",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",