@eui/tools 4.19.15 → 4.19.16

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
- 4.19.15
1
+ 4.19.16
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 4.19.16 (2022-03-09)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted openid vs normal injection env config - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([c2a5d816](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c2a5d81641a566bc3b1036644fac1b5a504d0c1e))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 4.19.15 (2022-03-07)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.19.15",
3
+ "version": "4.19.16",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -136,8 +136,15 @@ module.exports.injectAppConfig = (project, configEnvTarget) => {
136
136
  }
137
137
 
138
138
  let rootTargetFolder = 'src';
139
- tools.logInfo(`Replacing default ${rootTargetFolder}/assets/openid-login-config.json file by ${envFilePath} content`);
140
- tools.copy(envFilePath, path.join(project.paths.angularPath, `${rootTargetFolder}/assets/openid-login-config.json`));
139
+ let replacedFile;
140
+
141
+ if ((project.build && project.build.openid) || openid) {
142
+ replacedFile = `${rootTargetFolder}/assets/openid-login-config.json`;
143
+ } else {
144
+ replacedFile = `${rootTargetFolder}/assets/env-json-config.json`;
145
+ }
146
+ tools.logInfo(`Replacing default ${replacedFile} file by ${envFilePath} content`);
147
+ tools.copy(envFilePath, path.join(project.paths.angularPath, `${replacedFile}`));
141
148
 
142
149
  tools.logSuccess();
143
150
  })