@eui/tools 6.15.19 → 6.15.21

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.15.19
1
+ 6.15.21
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.15.21 (2024-03-05)
2
+
3
+ ##### Reverts
4
+
5
+ * **other:**
6
+ * collide with MWP strategy - EUI-8994 [EUI-8994](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-8994) ([ec61e0fa](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ec61e0fa6f6833fd9758e1a0c5a20c5c482ee74f))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.15.20 (2024-03-05)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted customScripInjection for MWP CDN / dynatrace script - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([c0b7d975](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c0b7d975d408fb96829bdaf9cd8a8bcab130ee2b))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.15.19 (2024-03-05)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.15.19",
3
+ "version": "6.15.21",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -20,7 +20,7 @@ const writePackageJsonCore = (newVersion, folder, isSnapshot, isNextBranch, isSu
20
20
  let tag = 'latest';
21
21
 
22
22
  if (isSnapshot) {
23
- tag = `v${newVersion.split('.')[0]}-snapshot`;
23
+ tag = `snapshot`;
24
24
  } else if (isNextBranch) {
25
25
  tag = 'next';
26
26
  } else if (isSupportBranch) {
@@ -104,7 +104,7 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
104
104
 
105
105
  // processing custom script injection if enabled in project config
106
106
  .then(() => {
107
- return this.processCustomEnvScriptInjection(project, envTarget);
107
+ return this.processCustomEnvScriptInjection(project, envTarget, configEnvTarget);
108
108
  })
109
109
 
110
110
  // checking if project as own pre-build.js script defined, and executing it
@@ -126,15 +126,23 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
126
126
  };
127
127
 
128
128
 
129
- module.exports.processCustomEnvScriptInjection = (project, envTarget) => {
129
+ module.exports.processCustomEnvScriptInjection = (project, envTarget, configEnvTarget) => {
130
130
  return Promise.resolve()
131
131
  .then(() => {
132
132
  if (project.build && project.build.customEnvScriptInjection) {
133
- tools.logInfo(`Processing custom script injection for ${project.name} - envTarget: ${envTarget}`);
133
+ let envTargetGen;
134
134
 
135
- const scriptName = project.build.customEnvScriptInjection[envTarget.toLowerCase()];
135
+ if (project.build && project.build.customEnvScriptInjectionConfigEnvTarget) {
136
+ envTargetGen = configEnvTarget;
137
+ tools.logInfo(`Processing custom script injection for ${project.name} - configEnvTarget: ${envTargetGen}`);
138
+ } else {
139
+ envTargetGen = envTarget;
140
+ tools.logInfo(`Processing custom script injection for ${project.name} - envTarget: ${envTargetGen}`);
141
+ }
142
+
143
+ const scriptName = project.build.customEnvScriptInjection[envTargetGen.toLowerCase()];
136
144
  if (!scriptName) {
137
- tools.logWarning('Unable to find script replacement definition for envTarget...skipping');
145
+ tools.logWarning('Unable to find script replacement definition for envTarget/configEnvTarget...skipping');
138
146
  return;
139
147
  } else {
140
148
  tools.logInfo(`Script to replace : ${scriptName}`);