@eui/tools 6.11.27 → 6.11.29

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.
@@ -1 +1 @@
1
- 6.11.27
1
+ 6.11.29
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.11.29 (2023-06-06)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * remotes metadata generation - check if remote exist optionally - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([70925c97](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/70925c978ff5776dabc82d2dd3ae6e2a7c078a94))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.11.28 (2023-06-06)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * fetching remote metadata issue when no remotes existing on local project - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([67d990f6](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/67d990f635d9d6c2e0b8e89a6b10e025ee70b55b))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.11.27 (2023-06-05)
2
20
 
3
21
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.11.27",
3
+ "version": "6.11.29",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -630,17 +630,21 @@ const injectRoutesConfig = (project, npmPkg) => {
630
630
  module.exports.extractRemotesMetadata = (project) => {
631
631
  tools.logTitle('Extracting remotes-metadata.json for known participant remotes');
632
632
 
633
+ const projectAssetsPath = path.join(process.cwd(), project.folder, 'src', 'assets');
634
+ const openidConfigFile = path.join(projectAssetsPath, 'openid-login-config.json');
635
+ const finalRemotesDefsFile = path.join(projectAssetsPath, 'remotes-metadata.json');
636
+
637
+ if (!tools.isFileExists(finalRemotesDefsFile)) {
638
+ tools.logInfo('...remotes-metadata.json not found / not previously generated ... skipping');
639
+ return;
640
+ }
641
+
633
642
  return Promise.resolve()
634
643
  .then(() => {
635
644
  return initUtils.remotes.cloneRemotesConfig();
636
645
  })
637
646
 
638
647
  .then(() => {
639
- const projectAssetsPath = path.join(process.cwd(), project.folder, 'src', 'assets');
640
-
641
- const finalRemotesDefsFile = path.join(projectAssetsPath, 'remotes-metadata.json');
642
- const openidConfigFile = path.join(projectAssetsPath, 'openid-login-config.json');
643
-
644
648
  let remoteMetadataJSON = tools.getJsonFileContent(finalRemotesDefsFile);
645
649
  const openidConfigJSON = tools.getJsonFileContent(openidConfigFile);
646
650
 
@@ -651,10 +655,10 @@ module.exports.extractRemotesMetadata = (project) => {
651
655
  if (configUtils.remotes.isVirtualRemote(r)) {
652
656
  remote = configUtils.remotes.getRemote(r);
653
657
  } else {
654
- remote = configUtils.packages.getPackage(r, true);
658
+ remote = configUtils.packages.getPackage(r, true, true);
655
659
  }
656
660
 
657
- if (remote.build && remote.build.hasParticipants) {
661
+ if (remote && remote.build && remote.build.hasParticipants) {
658
662
  let participantsList;
659
663
  if (remote.euiVersion === '15.x') {
660
664
  participantsList = openidConfigJSON.modules[remote.build.configModuleName].participants_v15