create-prisma-php-app 1.6.48 → 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.
- package/dist/index.js +5 -4
- 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
|
|
321
|
+
const questionsArray = [];
|
|
322
322
|
if (!predefinedAnswers.projectName) {
|
|
323
|
-
|
|
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
|
-
|
|
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
|
-
|
|
341
|
+
questionsArray.push({
|
|
342
342
|
type: "toggle",
|
|
343
343
|
name: "websocket",
|
|
344
344
|
message: `Would you like to use ${chalk.blue("Websocket")}?`,
|
|
@@ -347,6 +347,7 @@ 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
353
|
return false;
|