@eui/tools 6.16.3 → 6.16.5

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
- 6.16.3
1
+ 6.16.5
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 6.16.5 (2024-03-25)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * force eUI 17 sub-pkg install for remotes - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([54c78a37](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/54c78a37a0e916995cfe9c21628232d16b9904ce))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.16.4 (2024-03-25)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * remove svg-sprite deps - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([36b2fd88](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/36b2fd88452a5356813595c6ca17225af0516179))
16
+ * force eUI 17.x sub-packages installation - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([3346935f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3346935ff5c29f2500dbb45241a362fbeb33d4f2))
17
+ * upgrade svg-sprite - EUI-8913 [EUI-8913](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-8913) ([b3a95f22](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b3a95f224ec0e7868fdfdcad81f7cea849605a0e))
18
+ ##### Bug Fixes
19
+
20
+ * **other:**
21
+ * rimraf sync - EUI-8913 [EUI-8913](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-8913) ([d60a3223](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d60a3223a516953cb5b755e2b468ce465797645b))
22
+
23
+ * * *
24
+ * * *
1
25
  ## 6.16.3 (2024-03-24)
2
26
 
3
27
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.16.3",
3
+ "version": "6.16.5",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -19,7 +19,7 @@
19
19
  "semver": "7.4.0",
20
20
  "cross-spawn": "6.0.5",
21
21
  "eol": "0.9.1",
22
- "rimraf": "^5.0.0",
22
+ "rimraf": "3.0.2",
23
23
  "ncp": "2.0.0",
24
24
  "moment": "2.29.4",
25
25
  "moment-timezone": "0.5.43",
@@ -42,7 +42,6 @@
42
42
  "chai": "4.3.10",
43
43
  "nyc": "15.1.0",
44
44
  "node-fetch": "2.6.9",
45
- "svg-sprite": "2.0.2",
46
45
  "imagemin": "7.0.1",
47
46
  "imagemin-svgo": "9.0.0",
48
47
  "concat": "1.0.3",
@@ -29,6 +29,21 @@ const getInstallRegistry = () => {
29
29
  module.exports.installDeps = (deps) => {
30
30
  return (
31
31
  Promise.resolve()
32
+
33
+ // parse eUI deps and explode the sub-packages (v17 issues)
34
+ .then(() => {
35
+ const euiVersion = configUtils.global.getLocalEuiVersion();
36
+
37
+ if (euiVersion === '17.x') {
38
+ Object.keys(deps).forEach((dep) => {
39
+ if (dep === '@eui/deps-base') {
40
+ deps['@eui/components'] = deps[dep];
41
+ deps['@eui/showcase'] = deps[dep];
42
+ }
43
+ });
44
+ }
45
+ })
46
+
32
47
  // Install dependencies
33
48
  .then(() => {
34
49
  tools.logTitle('Package dependencies to install : ');
@@ -77,6 +77,21 @@ const pkgInstall = (pkg, envTarget) => {
77
77
  // merging base+composite
78
78
  deps = { ...baseDeps, ...compositeDeps };
79
79
 
80
+
81
+ // parse eUI deps and explode the sub-packages (v17 issues)
82
+ // getting package eUI version
83
+ const euiVersion = configUtils.packages.getPackageEuiVersion(pkg);
84
+
85
+ // add sub-eUI packages for v17
86
+ if (euiVersion === '17.x') {
87
+ Object.keys(deps).forEach((dep) => {
88
+ if (dep === '@eui/deps-base') {
89
+ deps['@eui/components'] = deps[dep];
90
+ deps['@eui/showcase'] = deps[dep];
91
+ }
92
+ });
93
+ }
94
+
80
95
  // updating package json file before installation
81
96
  const pkgJsonFile = path.resolve(pkg.paths.root, 'package.json');
82
97
  const pkgJson = require(pkgJsonFile);
@@ -86,9 +101,6 @@ const pkgInstall = (pkg, envTarget) => {
86
101
  // store dependencies metadata for later fetch of remote deps installed for a particular version published
87
102
  pkgJson.remoteDependencies = deps;
88
103
 
89
- // getting package eUI version
90
- const euiVersion = configUtils.packages.getPackageEuiVersion(pkg);
91
-
92
104
  // checking for resolution updates according to eUI version used
93
105
  initUtils.global.initRemoteFilesAndResolutions(pkg.paths.root, euiVersion);
94
106
 
@@ -17,7 +17,6 @@ const execa = require('execa');
17
17
  const replace = require('replace-in-file');
18
18
  const xml2js = require('xml2js');
19
19
  const moment = require('moment');
20
- const { rimrafSync } = require('rimraf');
21
20
 
22
21
  const isTestRunning = process.env._TEST;
23
22
 
@@ -207,7 +206,12 @@ function rmdir(path) {
207
206
 
208
207
  function rimraf(inputPath) {
209
208
  this.logInfo(`Removing ${inputPath}...`);
210
- return rimrafSync(inputPath);
209
+ let exec = path.resolve(process.cwd(), 'node_modules', 'rimraf', 'bin.js');
210
+ if (!isFileExists(exec)) {
211
+ // special location when used within eUI CLI
212
+ exec = path.resolve(__dirname, '../../../..', 'rimraf', 'bin.js');
213
+ }
214
+ return execa.sync('node', [exec, inputPath], { cwd: process.cwd(), stdio: 'inherit' })
211
215
  }
212
216
 
213
217
  function rmdirFull(dirPath, removeSelf) {