@eui/tools 6.12.6 → 6.12.8
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.8
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.12.8 (2023-06-19)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* remove browserlist injection for remote - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([1c7c5098](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1c7c5098298b9b80bab40b1908321738ebb01523))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.12.7 (2023-06-19)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* audit-styles for indices count - adapted injection of yarn.lock for remote build - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([9b4bb063](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9b4bb06339e34a671af1526d258f58fffde1f87d))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.12.6 (2023-06-19)
|
|
2
20
|
|
|
3
21
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -50,11 +50,13 @@ const runStylesAudit = module.exports.runStylesAudit = (pkg, customPath) => {
|
|
|
50
50
|
const recalculateIndicesCount = (indicesContent) => {
|
|
51
51
|
let count = 0;
|
|
52
52
|
|
|
53
|
-
indicesContent.
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
if (indicesContent && indicesContent.length !== 0) {
|
|
54
|
+
indicesContent.forEach((ic) => {
|
|
55
|
+
ic.forEach((icd) => {
|
|
56
|
+
count++;
|
|
57
|
+
});
|
|
56
58
|
});
|
|
57
|
-
}
|
|
59
|
+
}
|
|
58
60
|
|
|
59
61
|
return count;
|
|
60
62
|
}
|
|
@@ -116,3 +116,32 @@ module.exports.initRootFilesAndResolutions = () => {
|
|
|
116
116
|
throw e;
|
|
117
117
|
})
|
|
118
118
|
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
module.exports.initRemoteFilesAndResolutions = (packageJsonPath, euiVersion) => {
|
|
122
|
+
tools.logTitle('Processing remote injections for local installed eUI versions if needed');
|
|
123
|
+
|
|
124
|
+
processResolutionsInjection(packageJsonPath, euiVersion);
|
|
125
|
+
|
|
126
|
+
if (!euiVersion || euiVersion === 'DEFAULT') {
|
|
127
|
+
tools.logInfo('euiVersion not found skippint yarn.lock replacement');
|
|
128
|
+
|
|
129
|
+
} else {
|
|
130
|
+
tools.logInfo(`Processing yarn.lock replacement for eUI version found : ${euiVersion}`);
|
|
131
|
+
|
|
132
|
+
if (registry) {
|
|
133
|
+
tools.logInfo('Alternate registry found...skipping yarn.lock remplacement');
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const yResourcesFile = path.join(__dirname, 'resources', euiVersion, 'yarn.lock');
|
|
138
|
+
const yDestFile = path.join(packageJsonPath, 'yarn.lock');
|
|
139
|
+
|
|
140
|
+
if (tools.isFileExists(yResourcesFile)) {
|
|
141
|
+
tools.copy(yResourcesFile, yDestFile);
|
|
142
|
+
} else {
|
|
143
|
+
tools.logInfo('Not found...skipping');
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
@@ -88,7 +88,7 @@ const pkgInstall = (pkg, envTarget, compositeType) => {
|
|
|
88
88
|
const euiVersion = configUtils.packages.getPackageEuiVersion(pkg);
|
|
89
89
|
|
|
90
90
|
// checking for resolution updates according to eUI version used
|
|
91
|
-
initUtils.global.
|
|
91
|
+
initUtils.global.initRemoteFilesAndResolutions(pkg.paths.root, euiVersion);
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
if (dryRun) {
|