@eui/tools 6.12.54 → 6.12.56

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.12.54
1
+ 6.12.56
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.12.56 (2023-09-16)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * localdev installation fetching rc package deps - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([a4fb9761](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a4fb9761f4a43b74d675001f0201a81d50d8179b))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.12.55 (2023-09-15)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * prevent unknown supported branches to be processed by build release - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([7a42606a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/7a42606a91fa9523b3cc5eedcce7438334fcc863))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.12.54 (2023-09-15)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.12.54",
3
+ "version": "6.12.56",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
package/sandbox.js CHANGED
@@ -22,6 +22,7 @@ const apiUtils = require('./scripts/utils/api-utils');
22
22
  const versionUtils = require('./scripts/csdr/version/version-utils');
23
23
  const publishUtils = require('./scripts/utils/publish/publish-utils');
24
24
 
25
+
25
26
  // console.log(configUtils.packages.getPackages());
26
27
  // console.log(configUtils.packages.getPackage('eui-tools'));
27
28
 
@@ -1329,16 +1330,26 @@ const publishUtils = require('./scripts/utils/publish/publish-utils');
1329
1330
  // console.log(e);
1330
1331
  // })
1331
1332
 
1332
- Promise.resolve()
1333
- .then(() => {
1334
- const pkg = configUtils.remotes.getRemote('cc-task-details-eui15-remote-el-ui', true);
1335
- console.log(pkg);
1333
+ // Promise.resolve()
1334
+ // .then(() => {
1335
+ // const pkg = configUtils.remotes.getRemote('cc-task-details-eui15-remote-el-ui', true);
1336
+ // console.log(pkg);
1336
1337
 
1337
- const deps = installUtils.remotes.getDeps(pkg, 'TST');
1338
- console.log(deps);
1338
+ // const deps = installUtils.remotes.getDeps(pkg, 'TST');
1339
+ // console.log(deps);
1339
1340
 
1340
- })
1341
+ // })
1342
+
1343
+ // .catch((e) => {
1344
+ // console.log(e);
1345
+ // })
1341
1346
 
1347
+ Promise.resolve()
1348
+ .then(() => {
1349
+ const util = require('./scripts/csdr/release/package/common');
1350
+ const branches = util.getBranches();
1351
+ console.log(branches);
1352
+ })
1342
1353
  .catch((e) => {
1343
1354
  console.log(e);
1344
1355
  })
@@ -114,7 +114,7 @@ module.exports.install = (providedDeps) => {
114
114
 
115
115
  const configDeps = { ...resolvedDeps, ...fixedDeps };
116
116
 
117
- return innerCommon.getResolvedCarretDeps(configDeps, false);
117
+ return innerCommon.getResolvedCarretDeps(configDeps, false, true);
118
118
  })
119
119
 
120
120
 
@@ -173,7 +173,7 @@ module.exports.getLocalPackagesCompositeDepsRemapped = () => {
173
173
  .then(() => {
174
174
  const compositeDeps = getLocalPackagesCompositeDeps();
175
175
 
176
- return innerCommon.getResolvedCarretDeps(compositeDeps, false);
176
+ return innerCommon.getResolvedCarretDeps(compositeDeps, false, true);
177
177
  })
178
178
 
179
179
  .then((remappedDeps) => {
@@ -241,7 +241,7 @@ module.exports.installDeps = (prj, pkg, isMaster) => {
241
241
  })
242
242
 
243
243
  .then(() => {
244
- return innerCommon.getResolvedCarretDeps(localPkgCompositeDeps, isMaster);
244
+ return innerCommon.getResolvedCarretDeps(localPkgCompositeDeps, isMaster, !isMaster);
245
245
  })
246
246
 
247
247
  .then((remappedDepsIn) => {
@@ -26,6 +26,12 @@ const getBranches = module.exports.getBranches = () => {
26
26
  const isHotfix = (!isMaster && !isSnapshot && !isSupportSnapshot && !isSupport && branch.indexOf('hotfix/') > -1);
27
27
  const isNext = (!isMaster && !isSnapshot && !isSupport && !isSupportSnapshot && !isHotfix && branch.indexOf('next/') > -1);
28
28
 
29
+ let valid = true;
30
+
31
+ if (!isSnapshot && !isMaster && !isSupportSnapshot && !isSupport && !isHotfix && !isNext) {
32
+ valid = false;
33
+ }
34
+
29
35
  return {
30
36
  isSupport: isSupport,
31
37
  isSupportSnapshot: isSupportSnapshot,
@@ -33,7 +39,8 @@ const getBranches = module.exports.getBranches = () => {
33
39
  isSnapshot: isSnapshot,
34
40
  isMaster: isMaster,
35
41
  isHotfix: isHotfix,
36
- branch: branch
42
+ branch: branch,
43
+ valid: valid
37
44
  }
38
45
  }
39
46
 
@@ -182,6 +189,21 @@ module.exports.preReleaseChecks = (pkg) => {
182
189
  return metadataUtils.common.isPipelineEnabled(pkg);
183
190
  })
184
191
 
192
+ // CHECK BRANCH VALIDITY
193
+ .then(() => {
194
+ const branches = this.getBranches();
195
+
196
+ utils.tools.logTitle('Checking branch validity');
197
+
198
+ if (!branches.valid) {
199
+ utils.tools.logInfo('Branch not supported ... stopping : allowed branches are develop-master-next/-support/-hotfix/');
200
+ throw 'BRANCH_NOT_SUPPORTED';
201
+
202
+ } else {
203
+ utils.tools.logInfo('Branch is valid... processing');
204
+ }
205
+ })
206
+
185
207
  // CHECKING PACKAGE LOCK STATE - AVOID SAME PACKAGE RUN issuing race conditions
186
208
  .then(() => {
187
209
  if (!pkg.backend) {