@pushpak_jangela/pushpak-ui-cli 1.1.2 → 1.1.3
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/bin/index.js +5 -4
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -4,7 +4,8 @@ const { Command } = require("commander");
|
|
|
4
4
|
const chalk = require("chalk");
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const fs = require("fs-extra");
|
|
7
|
-
const inquirer = require("inquirer");
|
|
7
|
+
const inquirer = require("inquirer").default;
|
|
8
|
+
|
|
8
9
|
const { execSync } = require("child_process");
|
|
9
10
|
|
|
10
11
|
const program = new Command();
|
|
@@ -91,8 +92,8 @@ async function askQuestions() {
|
|
|
91
92
|
name: "componentTypes",
|
|
92
93
|
message: "Which component layers do you want?",
|
|
93
94
|
choices: [
|
|
94
|
-
{ name: "uiComponent (Plain React)", value: "
|
|
95
|
-
{ name: "muiComponent (MUI-based)", value: "
|
|
95
|
+
{ name: "uiComponent (Plain React)", value: "uiComponents" },
|
|
96
|
+
{ name: "muiComponent (MUI-based)", value: "muiComponents" },
|
|
96
97
|
],
|
|
97
98
|
validate: (value) =>
|
|
98
99
|
value.length > 0 || "Select at least one component type",
|
|
@@ -101,7 +102,7 @@ async function askQuestions() {
|
|
|
101
102
|
type: "checkbox",
|
|
102
103
|
name: "components",
|
|
103
104
|
message: "Select components to install",
|
|
104
|
-
choices: ["
|
|
105
|
+
choices: ["ButtonComponent", "SelectComponent", "InputComponent"],
|
|
105
106
|
validate: (value) =>
|
|
106
107
|
value.length > 0 || "Select at least one component",
|
|
107
108
|
},
|