@pega/dx-component-builder-sdk 0.1.44 → 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.44",
3
+ "version": "0.1.45",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -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
  };