@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 +1 -1
- package/src/tasks/list/helper.js +5 -3
package/package.json
CHANGED
package/src/tasks/list/helper.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
127
|
+
console.log(chalk.bold.redBright(`No ${sourceOfComponentsLC} custom/override components.`));
|
|
126
128
|
}
|
|
127
129
|
};
|