@eui/tools 6.16.3 → 6.16.4

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.4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## 6.16.4 (2024-03-25)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * 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))
7
+ * 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))
8
+ * 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))
9
+ ##### Bug Fixes
10
+
11
+ * **other:**
12
+ * 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))
13
+
14
+ * * *
15
+ * * *
1
16
  ## 6.16.3 (2024-03-24)
2
17
 
3
18
  ##### 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.4",
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 : ');
@@ -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) {