@eui/tools 6.12.19 → 6.12.20
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.
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.12.
|
|
1
|
+
6.12.20
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.12.20 (2023-06-25)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* save stylesAuditReport into metadata for later processing - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([513f7776](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/513f77763e9d980de2c8fbca3dd0bfd05973e217))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.12.19 (2023-06-24)
|
|
2
11
|
|
|
3
12
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ const moment = require('moment');
|
|
|
8
8
|
const tools = require('../../utils/tools');
|
|
9
9
|
const configUtils = require('../config/config-utils');
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const { dryRun } = tools.getArgs();
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
module.exports.getMetadata = (pkg) => {
|
|
@@ -92,7 +92,15 @@ module.exports.storeMetadata = (pkg, pkgVersion, pkgCompositeDeps, duration, env
|
|
|
92
92
|
generatedMetadata.versions = versions;
|
|
93
93
|
|
|
94
94
|
tools.logInfo(`Write metadata on ${pkgMetadataFile}`);
|
|
95
|
-
|
|
95
|
+
|
|
96
|
+
if (dryRun) {
|
|
97
|
+
tools.logInfo('DRY RUN...outputing newVersionMetadata');
|
|
98
|
+
console.log(newVersionMetadata);
|
|
99
|
+
|
|
100
|
+
} else {
|
|
101
|
+
tools.writeJsonFileSync(pkgMetadataFile, generatedMetadata);
|
|
102
|
+
}
|
|
103
|
+
|
|
96
104
|
})
|
|
97
105
|
|
|
98
106
|
.catch((e) => {
|
|
@@ -17,9 +17,6 @@ const { dryRun, nexusUser, nexusPassword } = tools.getArgs();
|
|
|
17
17
|
const writePackageJsonCore = (newVersion, folder, isSnapshot, isNextBranch, isSupportBranch, isHotfixBranch, envTarget) => {
|
|
18
18
|
return Promise.resolve()
|
|
19
19
|
.then(() => {
|
|
20
|
-
const pkgJsonFile = path.resolve(folder, 'package.json');
|
|
21
|
-
const pkgJson = require(pkgJsonFile);
|
|
22
|
-
|
|
23
20
|
let tag;
|
|
24
21
|
|
|
25
22
|
if (isSnapshot) {
|
|
@@ -32,12 +29,17 @@ const writePackageJsonCore = (newVersion, folder, isSnapshot, isNextBranch, isSu
|
|
|
32
29
|
tag = 'latest';
|
|
33
30
|
}
|
|
34
31
|
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
if (dryRun) {
|
|
33
|
+
tools.logInfo(`Updating package.json with : newVersion: ${newVersion} - tag: ${tag}`);
|
|
34
|
+
|
|
35
|
+
} else {
|
|
36
|
+
const pkgJsonFile = path.resolve(folder, 'package.json');
|
|
37
|
+
const pkgJson = require(pkgJsonFile);
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
pkgJson.version = newVersion;
|
|
40
|
+
pkgJson.tag = tag;
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
tools.logInfo(`Updating package version : ${newVersion} / tag: ${tag} for ${pkgJsonFile}`);
|
|
41
43
|
tools.writeJsonFileSync(pkgJsonFile, pkgJson);
|
|
42
44
|
}
|
|
43
45
|
})
|