@eui/tools 6.3.23 → 6.3.24

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.3.23
1
+ 6.3.24
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.3.24 (2023-02-08)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * wrong declaration order for virtual remote generation function - MWP-9204 [MWP-9204](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9204) ([16b6590d](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/16b6590ddbe4b6f9cfb5db3f2f8a1c08ea46d4ad))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.3.23 (2023-02-08)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.3.23",
3
+ "version": "6.3.24",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -39,24 +39,9 @@ const cloneRemotesConfig = module.exports.cloneRemotesConfig = () => {
39
39
  module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
40
40
  tools.logTitle('Generating virtual remote');
41
41
 
42
- // getting the remote config
43
- const remote = configUtils.remotes.getRemote(remoteName);
44
-
45
- if (!remote) {
46
- throw new Error(`Remote ${remoteName} can't be found in the remotes CSDR configuration OR the remotes configs of the project`);
47
- }
48
-
49
- tools.logInfo('Remote config found: ')
50
- console.log(remote);
51
-
52
- const remotePath = path.join(process.cwd(), 'remotes', remote.name);
53
- const remoteSrcPath = path.join(remotePath, 'src');
54
- const remoteSkeletonRootPath = path.join(__dirname, 'remotes', remote.euiVersion);
55
- const remoteSkeletonPath = path.join(remoteSkeletonRootPath, 'base');
56
-
42
+ let remote, remotePath, remoteSrcPath, remoteSkeletonRootPath, remoteSkeletonPath;
57
43
 
58
44
  return Promise.resolve()
59
-
60
45
  // clone remotes config if first init
61
46
  .then(() => {
62
47
  if (cloneRemote) {
@@ -64,6 +49,23 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
64
49
  }
65
50
  })
66
51
 
52
+ // getting remote config
53
+ .then(() => {
54
+ remote = configUtils.remotes.getRemote(remoteName);
55
+
56
+ if (!remote) {
57
+ throw new Error(`Remote ${remoteName} can't be found in the remotes CSDR configuration OR the remotes configs of the project`);
58
+ }
59
+
60
+ tools.logInfo('Remote config found: ')
61
+ console.log(remote);
62
+
63
+ remotePath = path.join(process.cwd(), 'remotes', remote.name);
64
+ remoteSrcPath = path.join(remotePath, 'src');
65
+ remoteSkeletonRootPath = path.join(__dirname, 'remotes', remote.euiVersion);
66
+ remoteSkeletonPath = path.join(remoteSkeletonRootPath, 'base');
67
+ })
68
+
67
69
  .then(() => {
68
70
  return tools.rimraf(remoteSrcPath);
69
71
  })