@eui/tools 5.3.49 → 5.3.51

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
- 5.3.49
1
+ 5.3.51
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## 5.3.51 (2022-09-20)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * disabled backend central metadata updates - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([ff68d23b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ff68d23be69e9a9f8b0a4f0b8522b69f8fbeb410))
7
+
8
+ * * *
9
+ * * *
10
+ ## 5.3.50 (2022-09-16)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * remove exception thrown on unlock package step - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([a8c284ef](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a8c284ef57c55325fd5d3a3ee4c563a19309e28c))
16
+ * forced zone.js resolutions for eUI14 - avoid clash with ionic for eUI mobile - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([21bc18da](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/21bc18da6831246585d3a8894731148e007a4658))
17
+
18
+ * * *
19
+ * * *
1
20
  ## 5.3.49 (2022-09-16)
2
21
 
3
22
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.3.49",
3
+ "version": "5.3.51",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "@types/node": ">=14.14.10",
3
3
  "https-proxy-agent": ">=2.2.3",
4
- "mem": ">=4.3.0 <=8.1.1"
4
+ "mem": ">=4.3.0 <=8.1.1",
5
+ "zone.js": ">=0.11.5"
5
6
  }
@@ -74,6 +74,11 @@ module.exports.storeMetadata = (
74
74
  .then(() => {
75
75
  tools.logInfo('Storing pkg devops metadata...');
76
76
 
77
+ if (pkg.backend) {
78
+ tools.logInfo('Backend package detected...skipping central metadata updates');
79
+ return;
80
+ }
81
+
77
82
  const metadataFile = path.join(
78
83
  configOptions.DEVOPS_METADATA_PATH,
79
84
  configOptions.DEVOPS_METADATA_JSON
@@ -242,7 +247,6 @@ module.exports.storeMetadata = (
242
247
  tools.writeJsonFileSync(metadataFile, metadata);
243
248
  } else {
244
249
  tools.logInfo(`Write metadata on ${metadataFile}`);
245
- // console.log(metadata);
246
250
  }
247
251
 
248
252
  devopsMetadata = metadata;
@@ -602,7 +602,14 @@ module.exports.sendSuccessNotification = (pkg, version, pkgMetadata) => {
602
602
 
603
603
  .then(() => {
604
604
  if (!pkg.backend) {
605
- return metadataUtils.package.unlockPackage(pkg);
605
+ return Promise.resolve()
606
+ .then(() => {
607
+ return metadataUtils.package.unlockPackage(pkg);
608
+ })
609
+ .catch((e) => {
610
+ utils.tools.logError('ERROR UNLOCKING PACKAGE');
611
+ console.log(e);
612
+ })
606
613
  }
607
614
  });
608
615
  })
@@ -147,11 +147,15 @@ const writePomXml = (pkg, newVersion, isSnapshot, isForceTimestamp = true) => {
147
147
 
148
148
 
149
149
  module.exports.updateVersion = (pkg, newVersion, isSnapshot, isNextBranch, isSupportBranch, isHotfixBranch, envTarget) => {
150
- if (pkg.backend) {
151
- return writePomXml(pkg, newVersion, isSnapshot);
152
- }
153
- else {
154
- return writePackageJson(pkg, newVersion, isSnapshot, isNextBranch, isSupportBranch, isHotfixBranch, envTarget);
150
+ try {
151
+ if (pkg.backend) {
152
+ return writePomXml(pkg, newVersion, isSnapshot);
153
+ }
154
+ else {
155
+ return writePackageJson(pkg, newVersion, isSnapshot, isNextBranch, isSupportBranch, isHotfixBranch, envTarget);
156
+ }
157
+ } catch(e) {
158
+ throw e;
155
159
  }
156
160
  }
157
161