@pega/custom-dx-components 24.2.16 → 24.2.17

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.17",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -430,6 +430,13 @@ addDebugLog("create", "", "+");
430
430
  description,
431
431
  allowedApplications
432
432
  } = answers;
433
+
434
+ // if description is blank, change to label
435
+ let goodDescription = description;
436
+ if (goodDescription === "") {
437
+ goodDescription = componentLabel;
438
+ }
439
+
433
440
  await validateCompile(
434
441
  {
435
442
  componentName,
@@ -439,7 +446,7 @@ addDebugLog("create", "", "+");
439
446
  framework,
440
447
  type,
441
448
  subtype,
442
- description,
449
+ description: goodDescription,
443
450
  allowedApplications
444
451
  },
445
452
  options
@@ -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.17",
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)