@pega/custom-dx-components 0.25.16 → 0.25.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
|
@@ -20,7 +20,8 @@ import {
|
|
|
20
20
|
getConfigDevBuild,
|
|
21
21
|
checkJWTExpiration,
|
|
22
22
|
getConfigDefaults,
|
|
23
|
-
getLibraryBased
|
|
23
|
+
getLibraryBased,
|
|
24
|
+
getLibraryBasedCL
|
|
24
25
|
} from '../../util.js';
|
|
25
26
|
import bundleComponent from '../bundle/index.js';
|
|
26
27
|
|
|
@@ -56,6 +57,7 @@ addDebugLog("localBuildLibrary", `organization: ${organization}, library: ${libr
|
|
|
56
57
|
const components = await getComponents();
|
|
57
58
|
const tokenAndStaticServer = await getC11NB2STokenAndStaticServer();
|
|
58
59
|
const currentOrgLib = organization.concat('_').concat(library);
|
|
60
|
+
const isLibraryBasedCL = getLibraryBasedCL();
|
|
59
61
|
|
|
60
62
|
if (tokenAndStaticServer.C11NB2S === undefined) {
|
|
61
63
|
console.log(
|
|
@@ -102,6 +104,8 @@ addDebugLog("localBuildLibrary", `organization: ${organization}, library: ${libr
|
|
|
102
104
|
// compile to see if any errors, as buildLib doesn't catch all errors.
|
|
103
105
|
// Turning off stats (last param), so won't show warnings, as
|
|
104
106
|
// warnings are part of buildLib
|
|
107
|
+
|
|
108
|
+
// for now
|
|
105
109
|
console.log(chalk.green.bold('Compile check...'));
|
|
106
110
|
await bundleComponent(components[0], null, devBuild, false);
|
|
107
111
|
console.log('');
|
|
@@ -122,10 +126,23 @@ addDebugLog("buildLib", "services call", "");
|
|
|
122
126
|
// tokenAndStaticServer.appStaticContentServer
|
|
123
127
|
// );
|
|
124
128
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
if (isLibraryBasedCL) {
|
|
130
|
+
buildLibV3(
|
|
131
|
+
buildLibName,
|
|
132
|
+
buildVersion
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
buildLib(
|
|
137
|
+
buildLibName,
|
|
138
|
+
buildVersion,
|
|
139
|
+
tokenAndStaticServer.C11NB2S,
|
|
140
|
+
tokenAndStaticServer.appStaticContentServer
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
129
146
|
addDebugLog("buildLib", "services end", "");
|
|
130
147
|
|
|
131
148
|
}
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@babel/preset-react": "^7.26.3",
|
|
107
107
|
"@babel/preset-typescript": "^7.26.0",
|
|
108
108
|
"@pega/configs": "^0.16.2",
|
|
109
|
-
"@pega/custom-dx-components": "~0.25.
|
|
109
|
+
"@pega/custom-dx-components": "~0.25.17",
|
|
110
110
|
"@pega/pcore-pconnect-typedefs": "^4.1.0-alpha.1",
|
|
111
111
|
"@storybook/addon-actions": "^7.6.19",
|
|
112
112
|
"@storybook/addon-essentials": "^7.6.19",
|