@pega/custom-dx-components 0.25.40 → 0.25.42

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": "0.25.40",
3
+ "version": "0.25.42",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -3,7 +3,9 @@ import chalk from 'chalk';
3
3
 
4
4
  import {
5
5
  showVersion,
6
+ getLibraryBased,
6
7
  getConfigDefaults,
8
+ checkLibraryAndArchives,
7
9
  getConfigDevServerPort
8
10
  } from '../../util.js';
9
11
 
@@ -15,6 +17,16 @@ import {
15
17
 
16
18
 
17
19
  await showVersion();
20
+
21
+
22
+ const isLibraryBased = getLibraryBased();
23
+ if (!isLibraryBased) {
24
+ console.log(`Command only supported for ${chalk.bold.green('library mode')} components.`);
25
+ process.exit();
26
+ }
27
+
28
+ await checkLibraryAndArchives();
29
+
18
30
  const devPort = await getConfigDevServerPort();
19
31
  const confDef = getConfigDefaults();
20
32
 
@@ -108,7 +108,7 @@
108
108
  "@babel/preset-react": "^7.27.1",
109
109
  "@babel/preset-typescript": "^7.27.1",
110
110
  "@pega/configs": "^0.16.3",
111
- "@pega/custom-dx-components": "~0.25.40",
111
+ "@pega/custom-dx-components": "~0.25.42",
112
112
  "@pega/pcore-pconnect-typedefs": "^4.1.0-alpha.1",
113
113
  "@storybook/addon-actions": "^8.6.14",
114
114
  "@storybook/addon-essentials": "^8.6.14",
@@ -7,6 +7,7 @@
7
7
  "rulesetVersion": "01-01-01",
8
8
  "sourceOfComponents": "Server",
9
9
  "devBuild": true,
10
+ "devServerPort": "3030",
10
11
  "serverType": "infinity",
11
12
  "server": "https://localhost:1080/prweb",
12
13
  "clientId": "10095186356008396159",
@@ -116,7 +116,7 @@ export const showHelpV2 = (isCL) => {
116
116
  console.log(`${chalk.cyan('npm run startStorybook')}\t\tstorybook components for testing`);
117
117
  console.log(`${chalk.cyan('npm run test')}\t\t\trun component unit tests`);
118
118
  if (isCL) {
119
- console.log(`${chalk.cyan('npm run startDevServer')}\t\tdebug runtime with VS Code break points using a local component server`);
119
+ console.log(`${chalk.cyan('npm run startDevServer')}\t\tdebug runtime with browser break points using a local component server`);
120
120
  }
121
121
 
122
122
  console.log("");