@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.
Files changed (2) hide show
  1. package/bin/index.js +5 -4
  2. 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: "uiComponent" },
95
- { name: "muiComponent (MUI-based)", value: "muiComponent" },
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: ["Button", "Select", "Input"],
105
+ choices: ["ButtonComponent", "SelectComponent", "InputComponent"],
105
106
  validate: (value) =>
106
107
  value.length > 0 || "Select at least one component",
107
108
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushpak_jangela/pushpak-ui-cli",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "bin": {
5
5
  "pushpak-ui": "bin/index.js"
6
6
  },