@pega/dx-component-builder-sdk 0.1.43 → 0.1.45

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/dx-component-builder-sdk",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -15,9 +15,9 @@ export default async options => {
15
15
  showVersion();
16
16
 
17
17
  const catQuestion = await getBuildCategory(options);
18
- const catAnwers = await inquirer.prompt(catQuestion);
18
+ const catAnswers = await inquirer.prompt(catQuestion);
19
19
 
20
- let category = catAnwers.category;
20
+ let category = catAnswers.category;
21
21
  if (category == null) {
22
22
  category = getOptionsCategory(options);
23
23
  }
@@ -90,9 +90,9 @@ export default async options => {
90
90
  showVersion();
91
91
 
92
92
  const catQuestion = await getBuildCategory(options);
93
- const catAnwers = await inquirer.prompt(catQuestion);
93
+ const catAnswers = await inquirer.prompt(catQuestion);
94
94
 
95
- let category = catAnwers.category;
95
+ let category = catAnswers.category;
96
96
  if (category == null) {
97
97
  category = getOptionsCategory(options);
98
98
  }
@@ -41,8 +41,9 @@ export const getListComponentsQuestions = async (options, sourceOfComponentsOpti
41
41
  export const listLocalComponents = async (sourceOfComponents, category = CATEGORY_CUSTOM) => {
42
42
  let localComponents = await getComponents(false, category);
43
43
  localComponents = localComponents.map(name => ({ 'Rule name': name }));
44
+ const sourceOfComponentsLC = sourceOfComponents.toLowerCase();
44
45
  if (localComponents.length > 0) {
45
- console.log(chalk.bold.blueBright(`List of custom components in ${sourceOfComponents}`));
46
+ console.log(chalk.bold.blueBright(`List of ${sourceOfComponentsLC} ${category} components.`));
46
47
  console.table(localComponents, ['Rule name']);
47
48
  } else {
48
49
  console.log(chalk.bold.redBright(`No custom components in ${sourceOfComponents}`));
@@ -116,12 +117,13 @@ export const displayServerComponents = async data => {
116
117
  'Ruleset version': pyRuleSetVersion
117
118
  }));
118
119
 
120
+ const sourceOfComponentsLC = defaultPegaServerConfig.server.toLowerCase();
119
121
  if (componentList && componentList.length > 0) {
120
122
  console.log(
121
- chalk.bold.blueBright(`List of custom components in ${defaultPegaServerConfig.server}`)
123
+ chalk.bold.blueBright(`List of ${sourceOfComponentsLC} custom/override components.`)
122
124
  );
123
125
  console.table(componentList, ['Rule name', 'Ruleset name', 'Ruleset version']);
124
126
  } else {
125
- console.log(chalk.bold.redBright(`No custom components in ${defaultPegaServerConfig.server}`));
127
+ console.log(chalk.bold.redBright(`No ${sourceOfComponentsLC} custom/override components.`));
126
128
  }
127
129
  };
@@ -12,9 +12,9 @@ export default async options => {
12
12
  showVersion();
13
13
 
14
14
  const catQuestion = await getBuildCategory(options);
15
- const catAnwers = await inquirer.prompt(catQuestion);
15
+ const catAnswers = await inquirer.prompt(catQuestion);
16
16
 
17
- let category = catAnwers.category;
17
+ let category = catAnswers.category;
18
18
  if (category == null) {
19
19
  category = getOptionsCategory(options);
20
20
  }
@@ -22,9 +22,9 @@ export default async options => {
22
22
  showVersion();
23
23
 
24
24
  const catQuestion = await getBuildCategory(options);
25
- const catAnwers = await inquirer.prompt(catQuestion);
25
+ const catAnswers = await inquirer.prompt(catQuestion);
26
26
 
27
- let category = catAnwers.category;
27
+ let category = catAnswers.category;
28
28
  if (category == null) {
29
29
  category = getOptionsCategory(options);
30
30
  }
@@ -147,9 +147,9 @@ export default async options => {
147
147
  showVersion();
148
148
 
149
149
  const catQuestion = await getBuildCategory(options);
150
- const catAnwers = await inquirer.prompt(catQuestion);
150
+ const catAnswers = await inquirer.prompt(catQuestion);
151
151
 
152
- let category = catAnwers.category;
152
+ let category = catAnswers.category;
153
153
  if (category == null) {
154
154
  category = getOptionsCategory(options);
155
155
  }