@eui/tools 6.3.19 → 6.3.20

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.3.19
1
+ 6.3.20
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.3.20 (2023-02-06)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * sedia virtual v10 remotes generation - MWP-8812 [MWP-8812](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8812) ([af2aec6a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/af2aec6a70cfdc104a4e747a4ac849d1b2a15709))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.3.19 (2023-02-06)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.3.19",
3
+ "version": "6.3.20",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -13,7 +13,7 @@
13
13
  "build": {
14
14
  "builder": "ngx-build-plus:build",
15
15
  "options": {
16
- "deployUrl": "/mwp/assets/elements/@remote.name@/bundles/",
16
+ "deployUrl": "@remote.deploy.url.root@/assets/elements/@remote.name@/bundles/",
17
17
  "outputPath": "dist",
18
18
  "index": "src/index.html",
19
19
  "main": "src/main.ts",
@@ -94,7 +94,15 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
94
94
  let angularJson = tools.getJsonFileContent(angularJsonPath);
95
95
 
96
96
  let angularContent = JSON.stringify(angularJson);
97
- angularContent = angularContent.replace('@remote.name@', remote.name);
97
+ angularContent = angularContent.replace('@remote.name@', remote.name);
98
+ angularContent = angularContent.replace('@remote.name@', remote.name);
99
+
100
+ // this is only applicated for v10 remotes and exclusively for SEDIA if provided, default to /mwp for MWP remotes
101
+ if (remote.build && remote.build.deployUrlRoot) {
102
+ angularContent = angularContent.replace('@remote.deploy.url.root@', remote.build.deployUrlRoot);
103
+ } else {
104
+ angularContent = angularContent.replace('@remote.deploy.url.root@', '/mwp');
105
+ }
98
106
 
99
107
  angularJson = JSON.parse(angularContent);
100
108
  angularJson.projects[remote.name].architect.build.options.styles = remote.angularConfig.styles;