@eui/tools 6.11.3 → 6.11.4

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.3
1
+ 6.11.4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.11.4 (2023-04-17)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted openid-login.js injection if provided within app (sedia v10) - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([d516ee00](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d516ee00aae3abc3d8220dec7a64ea88bd96dcd3))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.11.3 (2023-04-16)
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.3",
3
+ "version": "6.11.4",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -114,11 +114,16 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
114
114
 
115
115
  let { configuration } = tools.getArgs();
116
116
  if (configuration !== 'proxy-mock') {
117
- tools.logInfo(`Copying ${nodeModulesPath}/@eui/base/assets/openid/openid-login.js to ${rootTargetFolder}/assets/openid-login.js`);
118
- tools.copy(
119
- path.join(nodeModulesPath, '/@eui/base/assets/openid/openid-login.js'),
120
- path.join(project.paths.angularPath, `${rootTargetFolder}/assets/openid-login.js`)
121
- );
117
+ if (project.build && project.build.providedOpenidLoginScript) {
118
+ tools.logInfo(`Provided openid-login.js script...skipping copy from eUI distribution`);
119
+
120
+ } else {
121
+ tools.logInfo(`Copying ${nodeModulesPath}/@eui/base/assets/openid/openid-login.js to ${rootTargetFolder}/assets/openid-login.js`);
122
+ tools.copy(
123
+ path.join(nodeModulesPath, '/@eui/base/assets/openid/openid-login.js'),
124
+ path.join(project.paths.angularPath, `${rootTargetFolder}/assets/openid-login.js`)
125
+ );
126
+ }
122
127
  } else {
123
128
  tools.logInfo(`Clearing ${rootTargetFolder}/assets/openid-login.js`);
124
129
  tools.writeFileContent(