@pega/custom-dx-components 24.2.16 → 24.2.18

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/custom-dx-components",
3
- "version": "24.2.16",
3
+ "version": "24.2.18",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -114,7 +114,7 @@ const compileMustacheTemplates = async (
114
114
  ALLOWEDAPPS: JSON.stringify(allowedApplications),
115
115
  TYPE: type,
116
116
  SUB_TYPE: JSON.stringify(mustacheSubType),
117
- DESCRIPTION: description,
117
+ DESCRIPTION: description || componentLabel,
118
118
  IS_TEMPLATE: isTemplate,
119
119
  IS_PICKLIST: isPicklist,
120
120
  IS_BOOLEAN: isBool,
@@ -430,6 +430,8 @@ addDebugLog("create", "", "+");
430
430
  description,
431
431
  allowedApplications
432
432
  } = answers;
433
+
434
+
433
435
  await validateCompile(
434
436
  {
435
437
  componentName,
@@ -101,7 +101,7 @@
101
101
  },
102
102
  "devDependencies": {
103
103
  "@pega/configs": "^0.15.1",
104
- "@pega/custom-dx-components": "~24.2.16",
104
+ "@pega/custom-dx-components": "~24.2.18",
105
105
  "@pega/pcore-pconnect-typedefs": "3.2.1",
106
106
  "@storybook/addon-actions": "^7.6.19",
107
107
  "@storybook/addon-essentials": "^7.6.19",
@@ -369,6 +369,11 @@ export default async (option) => {
369
369
 
370
370
  if (valid) {
371
371
 
372
+ if (data.description === "") {
373
+ throw new Error(`Invalid schema json in config.json: 'description' cannot be blank.`);
374
+ process.exit(1);
375
+ }
376
+
372
377
  if (
373
378
  componentToValidate &&
374
379
  !/^[A-Za-z0-9]+_[A-Za-z0-9]+_[A-Za-z0-9]+$/.test(componentToValidate)