@eui/tools 6.15.13 → 6.15.14
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.15.
|
|
1
|
+
6.15.14
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.15.14 (2024-02-06)
|
|
2
|
+
|
|
3
|
+
##### Refactors
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* Update package dependencies based on package name prefix - EUI-8840 [EUI-8840](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-8840) ([5a2d62ed](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5a2d62ed13762cdd4cb6c1081aa3f7936ddb5848))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.15.13 (2024-02-02)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -39,6 +39,23 @@ const writePackageJsonCore = (newVersion, folder, isSnapshot, isNextBranch, isSu
|
|
|
39
39
|
pkgJson.version = newVersion;
|
|
40
40
|
pkgJson.tag = tag;
|
|
41
41
|
|
|
42
|
+
// This code snippet checks if the package name starts with '@eui' and updates the version of dependencies
|
|
43
|
+
// and peerDependencies accordingly, excluding dependencies that start with '@eui/tools'.
|
|
44
|
+
if(pkgJson.name.startsWith('@eui') && pkgJson.dependencies) {
|
|
45
|
+
Object.keys(pkgJson.dependencies)
|
|
46
|
+
.filter(dep => dep.startsWith('@eui') && !dep.startsWith('@eui/tools'))
|
|
47
|
+
.forEach((dep) => {
|
|
48
|
+
pkgJson.dependencies[dep] = newVersion;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
if(pkgJson.name.startsWith('@eui') && pkgJson.peerDependencies) {
|
|
52
|
+
Object.keys(pkgJson.peerDependencies)
|
|
53
|
+
.filter(dep => dep.startsWith('@eui') && !dep.startsWith('@eui/tools'))
|
|
54
|
+
.forEach((dep) => {
|
|
55
|
+
pkgJson.peerDependencies[dep] = newVersion;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
42
59
|
tools.logInfo(`Updating package version : ${newVersion} / tag: ${tag} for ${pkgJsonFile}`);
|
|
43
60
|
tools.writeJsonFileSync(pkgJsonFile, pkgJson);
|
|
44
61
|
}
|
|
@@ -48,6 +65,13 @@ const writePackageJsonCore = (newVersion, folder, isSnapshot, isNextBranch, isSu
|
|
|
48
65
|
})
|
|
49
66
|
}
|
|
50
67
|
|
|
68
|
+
const processDependency = (dep) => {
|
|
69
|
+
if(dep.startsWith('@eui')) {
|
|
70
|
+
pkgJson.dependencies[dep] = newVersion;
|
|
71
|
+
}
|
|
72
|
+
return dep;
|
|
73
|
+
}
|
|
74
|
+
|
|
51
75
|
const writePackageJson = (pkg, newVersion, isSnapshot, isNextBranch, isSupportBranch, isHotfixBranch, envTarget) => {
|
|
52
76
|
return Promise.resolve()
|
|
53
77
|
.then(() => {
|