@eui/tools 6.21.0 → 6.21.2

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.21.0
1
+ 6.21.2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.2 (2024-10-07)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **audit:**
6
+ * styles audit remove newly created package check temporary as metadata are wrongly gathered for this case - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([b5ca5585](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b5ca5585f5439857b1e37c5f8d19154e475181de))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.1 (2024-09-20)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * prevent pre prod deps fetch for sedia related host and remotes - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([118efeee](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/118efeeea5aa3ef87d567f5ba1ce89e8b1a1e809))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.0 (2024-09-16)
2
20
 
3
21
  ##### New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.0",
3
+ "version": "6.21.2",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -758,11 +758,11 @@ module.exports.audit = (pkg) => {
758
758
  gates = allNewGates;
759
759
  } else {
760
760
  tools.logInfo('===> no forced gates flag detected ...');
761
- tools.logInfo('Checking if package is newly created -- all versions gates are checked in that case');
761
+ // tools.logInfo('Checking if package is newly created -- all versions gates are checked in that case');
762
762
 
763
- if (metadataUtils.packageUtils.isNewPackageBuild(pkg)) {
764
- gates = allNewGates;
765
- } else {
763
+ // if (metadataUtils.packageUtils.isNewPackageBuild(pkg)) {
764
+ // gates = allNewGates;
765
+ // } else {
766
766
  if (euiVersionGates) {
767
767
  tools.logInfo('eUI version gates found, applied to older packages where limited gates are set');
768
768
  gates = euiVersionGates;
@@ -770,7 +770,7 @@ module.exports.audit = (pkg) => {
770
770
  tools.logInfo('No gates found for local eUI version...');
771
771
  return;
772
772
  }
773
- }
773
+ // }
774
774
  }
775
775
 
776
776
  tools.logInfo(`Gates found : ${JSON.stringify(gates)}`);
@@ -129,6 +129,7 @@ module.exports.getCompositeDeps = (
129
129
  envsMetadata,
130
130
  envTarget = 'DEV',
131
131
  standalone = false,
132
+ hasPreprod = true
132
133
  ) => {
133
134
 
134
135
  tools.logInfo('install.compositeCore.getCompositeDeps');
@@ -203,12 +204,21 @@ module.exports.getCompositeDeps = (
203
204
  * Default : PROD respective composite
204
205
  */
205
206
  if (envTarget === 'PROD') {
206
- return getCompositeDepsByEnv(
207
- compositePath,
208
- envTarget,
209
- envsMetadata,
210
- 'PPD', 'PROD'
211
- );
207
+ if (hasPreprod) {
208
+ return getCompositeDepsByEnv(
209
+ compositePath,
210
+ envTarget,
211
+ envsMetadata,
212
+ 'PPD', 'PROD'
213
+ );
214
+ } else {
215
+ return getCompositeDepsByEnv(
216
+ compositePath,
217
+ envTarget,
218
+ envsMetadata,
219
+ 'TRN', 'PROD'
220
+ );
221
+ }
212
222
  }
213
223
 
214
224
 
@@ -23,11 +23,18 @@ const getDeps = (module.exports.getDeps = (prj, envTarget) => {
23
23
  return metadataUtils.appEnvs.getMetadata(prj);
24
24
  })
25
25
  .then((envsMetadata) => {
26
+ let hasPreprod = true;
27
+
28
+ if (prj.hostName && prj.hostName === 'sedia') {
29
+ hasPreprod = false;
30
+ }
31
+
26
32
  return innerCompositeCore.getCompositeDeps(
27
33
  prj.folder,
28
34
  envsMetadata,
29
35
  envTarget,
30
- prj.standalone
36
+ prj.standalone,
37
+ hasPreprod
31
38
  );
32
39
  })
33
40
 
@@ -161,11 +161,19 @@ const getDeps = module.exports.getDeps = (pkg, envTarget) => {
161
161
  return metadataUtils.remotePackage.getMetadataEnvs(pkg);
162
162
  })
163
163
  .then((envsMetadata) => {
164
+
165
+ let hasPreprod = true;
166
+
167
+ if (pkg.build && pkg.build.appTarget && (pkg.build.appTarget === 'SEDIA_ONLY' || pkg.build.appTarget === 'MWP_SEDIA')) {
168
+ hasPreprod = false;
169
+ }
170
+
164
171
  return innerCompositeCore.getCompositeDeps(
165
172
  pkg.paths.fromRoot,
166
173
  envsMetadata,
167
174
  envTarget,
168
- pkg.standalone
175
+ pkg.standalone,
176
+ hasPreprod
169
177
  );
170
178
  })
171
179