@eui/tools 4.21.11 → 4.21.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 +1 -1
- package/CHANGELOG.md +27 -0
- package/package.json +4 -5
- package/sandbox.js +2 -3
- package/scripts/csdr/init/init-utils.js +36 -0
- package/scripts/csdr/init/init.js +5 -0
- package/scripts/csdr/init/resources/nodejs-10.x/resolutions.json +8 -0
- package/scripts/csdr/sync/sync-utils.js +3 -0
- package/scripts/utils/build/package/nodeJs.js +5 -5
- package/scripts/csdr/init/resources/10.x/resolutions.json +0 -6
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.21.
|
|
1
|
+
4.21.14
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 4.21.14 (2022-04-08)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted nodejs 10.x resolution force update-notifier 4.1.3 to avoid lru-cache - semver upgrade - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([b39c05b4](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b39c05b47e1f71429f749ccdef2d03ec36de1de2))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 4.21.13 (2022-04-08)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* remove jest dependency - upgraded semver to 7.3.4 for avoiding lru-cache dependency on root tools install - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([a7442c2a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a7442c2a6b0cf6cc5dd5577436b8ad8467613184))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 4.21.12 (2022-04-08)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* adapted resolutions based on nodejs version detected as v7 is stuck building packages - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([a3e55041](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a3e550416b16d543cebd09e96d18be1834d317d4))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
1
28
|
## 4.21.11 (2022-04-07)
|
|
2
29
|
|
|
3
30
|
##### Chores
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eui/tools",
|
|
3
|
-
"version": "4.21.
|
|
3
|
+
"version": "4.21.14",
|
|
4
4
|
"tag": "latest",
|
|
5
5
|
"license": "EUPL-1.1",
|
|
6
6
|
"description": "eUI common tools and scripts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"chalk": "4.1.2",
|
|
17
17
|
"fs-extra": "9.0.0",
|
|
18
18
|
"replace-in-file": "4.1.3",
|
|
19
|
-
"semver": "
|
|
19
|
+
"semver": "7.3.4",
|
|
20
20
|
"cross-spawn": "6.0.5",
|
|
21
21
|
"eol": "0.9.1",
|
|
22
22
|
"rimraf": "3.0.2",
|
|
@@ -27,8 +27,6 @@
|
|
|
27
27
|
"figures": "3.2.0",
|
|
28
28
|
"xml2js": "0.4.23",
|
|
29
29
|
"https-proxy-agent": "2.2.3",
|
|
30
|
-
"jest": "26.6.3",
|
|
31
|
-
"supertest": "4.0.2",
|
|
32
30
|
"memfs": "3.2.4",
|
|
33
31
|
"json-server": "0.16.3",
|
|
34
32
|
"faker": "5.5.3",
|
|
@@ -40,6 +38,7 @@
|
|
|
40
38
|
"autoprefixer": "9.6.1",
|
|
41
39
|
"sass": "1.39.0",
|
|
42
40
|
"postcss": "7.0.36",
|
|
43
|
-
"cssnano": "4.1.11"
|
|
41
|
+
"cssnano": "4.1.11",
|
|
42
|
+
"extend": "3.0.2"
|
|
44
43
|
}
|
|
45
44
|
}
|
package/sandbox.js
CHANGED
|
@@ -694,10 +694,9 @@ const translationUtils = require('./scripts/utils/pre-build/translations/transla
|
|
|
694
694
|
// console.log(configOptions);
|
|
695
695
|
// })
|
|
696
696
|
|
|
697
|
-
|
|
697
|
+
Promise.resolve()
|
|
698
698
|
.then(() => {
|
|
699
|
-
|
|
700
|
-
console.log(versions);
|
|
699
|
+
return initUtils.processResolutionsForNodeVersion();
|
|
701
700
|
})
|
|
702
701
|
|
|
703
702
|
// return Promise.resolve()
|
|
@@ -243,3 +243,39 @@ module.exports.processLocalEuiVersions = () => {
|
|
|
243
243
|
throw e;
|
|
244
244
|
})
|
|
245
245
|
}
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
module.exports.processResolutionsForNodeVersion = () => {
|
|
249
|
+
return Promise.resolve()
|
|
250
|
+
.then(() => {
|
|
251
|
+
tools.logTitle('Processing injections for detected nodeJS version');
|
|
252
|
+
|
|
253
|
+
let nodeVersion = process.versions.node;
|
|
254
|
+
nodeVersion = `${nodeVersion.split('.')[0]}.x`;
|
|
255
|
+
|
|
256
|
+
const rootPackageJsonFile = path.join(process.cwd(), 'package.json');
|
|
257
|
+
const rootPackageJson = require(rootPackageJsonFile);
|
|
258
|
+
|
|
259
|
+
const nodeVersionResource = `nodejs-${nodeVersion}`;
|
|
260
|
+
|
|
261
|
+
const resolutionsJsonFile = path.join(__dirname, 'resources', nodeVersionResource, 'resolutions.json');
|
|
262
|
+
|
|
263
|
+
tools.logInfo(`Checking nodejsResolution resource for path: ${resolutionsJsonFile}`);
|
|
264
|
+
|
|
265
|
+
if (tools.isFileExists(resolutionsJsonFile)) {
|
|
266
|
+
const resolutionsJson = require(resolutionsJsonFile);
|
|
267
|
+
|
|
268
|
+
tools.logInfo('Injecting resolutions content');
|
|
269
|
+
console.log(resolutionsJson);
|
|
270
|
+
rootPackageJson.resolutions = resolutionsJson;
|
|
271
|
+
|
|
272
|
+
tools.logInfo('Updating root package.json');
|
|
273
|
+
tools.writeJsonFileSync(rootPackageJsonFile, rootPackageJson);
|
|
274
|
+
} else {
|
|
275
|
+
tools.logWarning('Not found...skipping');
|
|
276
|
+
}
|
|
277
|
+
})
|
|
278
|
+
.catch((e) => {
|
|
279
|
+
throw e;
|
|
280
|
+
})
|
|
281
|
+
}
|
|
@@ -83,6 +83,11 @@ module.exports.init = () => {
|
|
|
83
83
|
return initUtils.processLocalEuiVersions();
|
|
84
84
|
})
|
|
85
85
|
|
|
86
|
+
// specific resolution injection based on NodeJS (recent failure of nodejs10.x for MWP v7)
|
|
87
|
+
.then(() => {
|
|
88
|
+
return initUtils.processResolutionsForNodeVersion();
|
|
89
|
+
})
|
|
90
|
+
|
|
86
91
|
// Install deps based on current config generated => take last know snapshots
|
|
87
92
|
.then(() => {
|
|
88
93
|
// this is only executed for local dev installation,
|
|
@@ -21,11 +21,11 @@ module.exports.build = (pkg, isMaster) => {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
return Promise.resolve()
|
|
24
|
-
.then(() => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
})
|
|
24
|
+
// .then(() => {
|
|
25
|
+
// if (!skipTest) {
|
|
26
|
+
// return testUtils.runJest(pkg);
|
|
27
|
+
// }
|
|
28
|
+
// })
|
|
29
29
|
|
|
30
30
|
.then(() => {
|
|
31
31
|
return notificationUtils.package.sendPackageMessage({
|