@pega/custom-dx-components 0.242.40 → 0.242.41

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/README.md CHANGED
@@ -8,7 +8,7 @@ This project provides you with an environment to extend Constellation by giving
8
8
 
9
9
  Ensure you have access to the following in your system:
10
10
 
11
- - Pega Infinity Server version 24 or later
11
+ - Pega Infinity Server version 24.2 or later
12
12
 
13
13
  - Git version 2.30 or later
14
14
 
@@ -16,6 +16,8 @@ Ensure you have access to the following in your system:
16
16
 
17
17
  - System npm version 8, 10 (9 is not supported)
18
18
 
19
+ - Recommended (node 20, npm 10)
20
+
19
21
  ## Latest Documentation
20
22
 
21
23
  Find the latest documentation on using **DX Component Builder** [here](https://docs.pega.com/bundle/constellation-dx-components/page/constellation-dx-components/custom-components/whats-new-constellation-dx-component-builder.html)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "0.242.40",
3
+ "version": "0.242.41",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -6,9 +6,27 @@ import {
6
6
  validateSemver,
7
7
  getLibraryArchiveDirectories,
8
8
  addDebugLog,
9
- getConfigDefaults
9
+ getConfigDefaults,
10
+ getComponents,
11
+ updateConfigVersion
10
12
  } from '../../util.js';
11
13
 
14
+
15
+ export const updateAllComponentsConfig = async( newVersion ) => {
16
+ addDebugLog("updateAllComponentsConfig", `newVersion: ${newVersion}`, "");
17
+ const componentList = await getComponents();
18
+ const orgLib = getConfigDefaults();
19
+ // const currentOrgLib = `${orgLib.organization}_${orgLib.library}`;
20
+ const currentOrgLib = orgLib.currentOrgLib;
21
+
22
+ for (const index in componentList) {
23
+ const componentKey = componentList[index];
24
+ await updateConfigVersion(componentKey, newVersion, currentOrgLib);
25
+
26
+ }
27
+ };
28
+
29
+
12
30
  export const getOkToProceedQuestion = async () => {
13
31
  addDebugLog("getCreateLibComponentQuestions", "", "");
14
32
 
@@ -18,7 +18,7 @@ import {
18
18
  cleanUpTemp
19
19
  } from '../../util.js';
20
20
 
21
- import { getCreateLibComponentQuestions, getOkToProceedQuestion } from './helper.js';
21
+ import { getCreateLibComponentQuestions, getOkToProceedQuestion, updateAllComponentsConfig } from './helper.js';
22
22
  import { showCurrentStatus } from '../show-status/index.js';
23
23
 
24
24
  export default async options => {
@@ -97,6 +97,12 @@ addDebugLog("createLibrary", "", "+");
97
97
  await updateComponentDefaultLibrary(libraryName);
98
98
  await zipVersionAndArchive(newOrgLib, version);
99
99
 
100
+ // if didn't have an archive, in case you currently have components there
101
+ // update the config jsons
102
+ if (!hasArch) {
103
+ await updateAllComponentsConfig(version);
104
+ }
105
+
100
106
  console.log(`${chalk.bold.green(`\nLibrary ${newOrgLib}/${version} has been created!\n`)}`);
101
107
 
102
108
  await forceDefaultsUpdate();
@@ -8,7 +8,7 @@ This project provides you with an environment to extend Constellation by giving
8
8
 
9
9
  Ensure you have access to the following in your system:
10
10
 
11
- - Pega Infinity Server version 23 or later
11
+ - Pega Infinity Server version 24.2 or later
12
12
 
13
13
  - Git version 2.30 or later
14
14
 
@@ -16,6 +16,8 @@ Ensure you have access to the following in your system:
16
16
 
17
17
  - System npm version 8, 10 (9 is not supported)
18
18
 
19
+ - Recommended (node 20, npm 10)
20
+
19
21
  ## Latest Documentation
20
22
 
21
- Find the latest documentation on using **DX Component Builder** [here](https://docs.pega.com/bundle/constellation-dx-components/page/constellation-dx-components/custom-components/whats-new-constellation-dx-components-pega-infinity-23.html)
23
+ Find the latest documentation on using **DX Component Builder** [here](https://docs.pega.com/bundle/constellation-dx-components/page/constellation-dx-components/custom-components/whats-new-constellation-dx-component-builder.html)
@@ -100,7 +100,7 @@
100
100
  },
101
101
  "devDependencies": {
102
102
  "@pega/configs": "^0.6.0",
103
- "@pega/custom-dx-components": "0.242.40",
103
+ "@pega/custom-dx-components": "0.242.41",
104
104
  "@pega/pcore-pconnect-typedefs": "~3.0.0",
105
105
  "@storybook/addon-actions": "^7.6.7",
106
106
  "@storybook/addon-essentials": "^7.6.19",
@@ -4,6 +4,11 @@
4
4
  "compilerOptions": {
5
5
  "noEmit": true,
6
6
  "allowJs": true,
7
- "importsNotUsedAsValues": "remove"
7
+ "importsNotUsedAsValues": "remove",
8
+ "skipLibCheck": true,
9
+ "baseUrl": "./",
10
+ "paths": {
11
+ "@pega/pcore-pconnect-typedefs/*": ["node_modules/@pega/pcore-pconnect-typedefs/*"]
12
+ }
8
13
  }
9
14
  }