@eui/tools 6.11.27 → 6.11.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.
@@ -1 +1 @@
1
- 6.11.27
1
+ 6.11.28
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.11.28 (2023-06-06)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * 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))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.11.27 (2023-06-05)
2
11
 
3
12
  ##### 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.28",
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