@pega/custom-dx-components 0.242.27 → 0.242.28
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
|
@@ -5,7 +5,16 @@ import chalk from 'chalk';
|
|
|
5
5
|
import validate from '../validator/index.js';
|
|
6
6
|
import bundleComponent from '../bundle/index.js';
|
|
7
7
|
import { lintComponent } from '../linter/index.js';
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
getComponentDirectoryPath,
|
|
10
|
+
showVersion,
|
|
11
|
+
getComponents,
|
|
12
|
+
addDebugLog,
|
|
13
|
+
cleanUp,
|
|
14
|
+
getLibraryBased,
|
|
15
|
+
checkLibraryAndArchives,
|
|
16
|
+
getConfigDefaults,
|
|
17
|
+
zipVersionAndArchive } from '../../util.js';
|
|
9
18
|
|
|
10
19
|
import { getBuildComponentQuestions } from './helper.js';
|
|
11
20
|
|
|
@@ -94,8 +103,12 @@ addDebugLog("buildAllComponents", "", "+");
|
|
|
94
103
|
console.log();
|
|
95
104
|
console.log(chalk.bold.green("Validation compile..."));
|
|
96
105
|
await bundleComponent(firstComponent, sourceMap, devBuild, showStats);
|
|
106
|
+
const confDef = getConfigDefaults();
|
|
107
|
+
await zipVersionAndArchive(confDef.currentOrgLib, confDef.buildVersion);
|
|
97
108
|
}
|
|
98
109
|
|
|
110
|
+
|
|
111
|
+
|
|
99
112
|
// once done, remove leftover directories
|
|
100
113
|
await cleanUp();
|
|
101
114
|
|
|
@@ -7,7 +7,15 @@ import validate from '../validator/index.js';
|
|
|
7
7
|
import bundleComponent from '../bundle/index.js';
|
|
8
8
|
import lintComponent from '../linter/index.js';
|
|
9
9
|
import { getPublishComponentQuestions } from './helper.js';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
getComponentDirectoryPath,
|
|
12
|
+
showVersion,
|
|
13
|
+
addDebugLog,
|
|
14
|
+
cleanUp,
|
|
15
|
+
getLibraryBased,
|
|
16
|
+
checkLibraryAndArchives,
|
|
17
|
+
getConfigDefaults,
|
|
18
|
+
zipVersionAndArchive } from '../../util.js';
|
|
11
19
|
|
|
12
20
|
|
|
13
21
|
export default async options => {
|
|
@@ -93,6 +101,9 @@ addDebugLog("buildComponent", "", "+");
|
|
|
93
101
|
process.exit(1);
|
|
94
102
|
});
|
|
95
103
|
|
|
104
|
+
const confDef = getConfigDefaults();
|
|
105
|
+
await zipVersionAndArchive(confDef.currentOrgLib, confDef.buildVersion);
|
|
106
|
+
|
|
96
107
|
// remove dist/lib stuff
|
|
97
108
|
await cleanUp();
|
|
98
109
|
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"switchLibrary": "custom-dx-components switchLibrary",
|
|
28
28
|
"createVersion": "custom-dx-components createVersion",
|
|
29
29
|
"switchVersion": "custom-dx-components switchVersion",
|
|
30
|
-
"renameLibrary": "custom-dx-components renameLibrary",
|
|
31
30
|
"listLibrary": "custom-dx-components listLibrary",
|
|
32
31
|
"listPublished": "custom-dx-components listPublished",
|
|
33
32
|
"deleteLibrary": "custom-dx-components deleteLibrary",
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
},
|
|
90
89
|
"devDependencies": {
|
|
91
90
|
"@pega/configs": "^0.6.0",
|
|
92
|
-
"@pega/custom-dx-components": "0.242.
|
|
91
|
+
"@pega/custom-dx-components": "0.242.28",
|
|
93
92
|
"@pega/pcore-pconnect-typedefs": "~3.0.0",
|
|
94
93
|
"@storybook/addon-actions": "^7.6.7",
|
|
95
94
|
"@storybook/addon-essentials": "^7.6.19",
|
|
@@ -115,7 +115,7 @@ addDebugLog("listPublished", "", "+");
|
|
|
115
115
|
else {
|
|
116
116
|
// No library with that name
|
|
117
117
|
console.log(chalk.redBright(`No local library named: ${libraryName} exists.`));
|
|
118
|
-
console.log(chalk.redBright(`You need to
|
|
118
|
+
console.log(chalk.redBright(`You need to publish library: ${libraryName} first.`));
|
|
119
119
|
addDebugLog("listPublished", "END", "-");
|
|
120
120
|
process.exit(1);
|
|
121
121
|
|
|
@@ -156,7 +156,7 @@ addDebugLog("listPublished", "END", "-");
|
|
|
156
156
|
else {
|
|
157
157
|
// No library with that name
|
|
158
158
|
console.log(chalk.redBright(`No server library named: ${libraryName} exists.`));
|
|
159
|
-
console.log(chalk.redBright(`You need to
|
|
159
|
+
console.log(chalk.redBright(`You need to publish library: ${libraryName} first.`));
|
|
160
160
|
addDebugLog("listPublished", "END", "-");
|
|
161
161
|
process.exit(1);
|
|
162
162
|
|
package/src/util.js
CHANGED
|
@@ -236,8 +236,8 @@ addDebugLog("getAboutData", `currentOrgLib: ${currentOrgLib}, buildVersion: ${bu
|
|
|
236
236
|
const tokenAndStaticServer = await getC11NB2STokenAndStaticServer();
|
|
237
237
|
|
|
238
238
|
if (tokenAndStaticServer.C11NB2S === undefined) {
|
|
239
|
-
console.log(chalk.
|
|
240
|
-
|
|
239
|
+
// console.log(chalk.yellowBright("Need to authenticate, missing services token.\nLibrary requires authentication to acquire a token to build."));
|
|
240
|
+
return `${currentOrgLib} ${buildVersion}, ${dateStamp}`;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
const jwt = jwtDecode(tokenAndStaticServer.C11NB2S);
|