@pega/custom-dx-components 0.242.53 → 0.242.54
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
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@pega/configs": "^0.15.1",
|
|
103
|
-
"@pega/custom-dx-components": "~0.242.
|
|
103
|
+
"@pega/custom-dx-components": "~0.242.54",
|
|
104
104
|
"@pega/pcore-pconnect-typedefs": "~3.2.0-alpha.1",
|
|
105
105
|
"@storybook/addon-actions": "^7.6.19",
|
|
106
106
|
"@storybook/addon-essentials": "^7.6.19",
|
package/src/tasks/move/index.js
CHANGED
|
@@ -191,7 +191,7 @@ export const moveComp = async(componentKey, copyMove, orgLibName, version, copyS
|
|
|
191
191
|
if (componentKey === 'ALL') {
|
|
192
192
|
for (let index in localComponents) {
|
|
193
193
|
// skip first ALL
|
|
194
|
-
if (index >
|
|
194
|
+
if (index > 0) {
|
|
195
195
|
const localComponentKey = localComponents[index];
|
|
196
196
|
newComponentKey = await localMoveCopyComp(localComponentKey.value, orgLibName, version, copyMove, currentDirectory, tempDirectory);
|
|
197
197
|
if (newComponentKey) {
|
|
@@ -264,7 +264,7 @@ export const localMoveCopyComp = async(componentKey, orgLibName, version, copyMo
|
|
|
264
264
|
let compLabel = "";
|
|
265
265
|
let compName = tempCompName;
|
|
266
266
|
|
|
267
|
-
if (fs.existsSync(join(
|
|
267
|
+
if (fs.existsSync(join(tempCompPath, componentKey)) && version === configDef.buildVersion && copyMove === "Copy") {
|
|
268
268
|
// need to rename
|
|
269
269
|
console.log(`\n${chalk.yellow(`${tempCompName}`)} exists, select new name and label for copied component.`);
|
|
270
270
|
const nameAnswers = await inquirer.prompt([
|
|
@@ -441,20 +441,15 @@ addDebugLog("move", "", "+");
|
|
|
441
441
|
const answers = await inquirer.prompt(keyQuestions);
|
|
442
442
|
({ componentKey = paramComponentKey} = answers);
|
|
443
443
|
|
|
444
|
-
|
|
445
|
-
|
|
446
444
|
const libQuestions = await getLibraryQuestions(archLibs);
|
|
447
445
|
const libAnswers = await inquirer.prompt(libQuestions);
|
|
448
446
|
orgLibName = libAnswers.libraryName;
|
|
449
|
-
const buildVersion = configDef.currentOrgLib === orgLibName ? configDef.buildVersion : "";
|
|
447
|
+
const buildVersion = configDef.currentOrgLib === orgLibName ? (copyMove === "Move" ? configDef.buildVersion : "" ) : "";
|
|
450
448
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
try {
|
|
454
|
-
libVersions = await getLibraryArchivesVersions(orgLibName, buildVersion);
|
|
455
|
-
}
|
|
456
|
-
catch (ex) {}
|
|
449
|
+
try {
|
|
450
|
+
libVersions = await getLibraryArchivesVersions(orgLibName, buildVersion);
|
|
457
451
|
}
|
|
452
|
+
catch (ex) {}
|
|
458
453
|
|
|
459
454
|
if (libVersions.length == 0) {
|
|
460
455
|
console.log(`Current library: ${chalk.green(`${orgLibName}`)} has NO available versions to move to.`);
|