@eui/tools 6.21.91 → 6.21.93

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.21.91
1
+ 6.21.93
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.93 (2025-07-04)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted sdlc migration tool - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([55a1ba0f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/55a1ba0fd938492d8e040c4d03a28d13c9e1061f))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.92 (2025-07-04)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted sdlc migration script for remotes - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([5fb4904a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5fb4904a5202c3cb402f736de9fd1a6489c8747b))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.91 (2025-07-03)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.91",
3
+ "version": "6.21.93",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -44,11 +44,56 @@ module.exports.migrate = (pkg) => {
44
44
  tools.writeJsonFileSync(packazgesSDLCConfigFile, packagesSDLCConfig);
45
45
 
46
46
 
47
+
47
48
  tools.logInfo('Adapting files for SDLC repository');
48
49
 
49
50
  tools.copydirFiles(path.join(__dirname, 'skeleton', '19.x'), pkg.paths.root);
50
51
 
51
52
  tools.move(path.join(pkg.paths.root, '.gitignore_TO_REPLACE'), path.join(pkg.paths.root, '.gitignore'));
53
+
54
+
55
+
56
+ tools.logInfo('Duplicating remote config');
57
+
58
+ const remotePrefix = `${pkg.npmPkg.split('/')[0].substr(1)}-${pkg.npmPkg.split('/')[1]}`;
59
+
60
+ const currentRemoteName = `${remotePrefix}-eui19-remote-el-ui`;
61
+ const newRemoteName = `${remotePrefix}-remote-eui19`;
62
+
63
+ console.log('Current remote : ', currentRemoteName);
64
+ console.log('New remote : ', newRemoteName);
65
+
66
+ const currentRemotePath = path.join(process.cwd(), 'packages', 'csdr-remotes-config', 'assets', currentRemoteName);
67
+ const newRemotePath = path.join(process.cwd(), '.sdlc-config', 'remotes', newRemoteName);
68
+
69
+ if (!tools.isDirExists(currentRemotePath)) {
70
+ throw new Error(`${currentRemotePath} NOT FOUND, contact support`);
71
+ }
72
+
73
+ tools.copydir(currentRemotePath, newRemotePath);
74
+
75
+ const remotesDependenciesConfigFile = path.join(process.cwd(), '.sdlc-config', 'remotes', newRemoteName, 'dependencies.json');
76
+ const remotesDependenciesConfig = require(remotesDependenciesConfigFile);
77
+
78
+ let remotesDependenciesConfigString = JSON.stringify(remotesDependenciesConfig);
79
+ remotesDependenciesConfigString = remotesDependenciesConfigString.replace('"INT"', '"int"').replace('"ACC"', '"acc"').replace('"DLT"', '"dlt"').replace('"TRN"', '"trn"').replace('"PROD"', '"prd"');
80
+
81
+ tools.writeJsonFileSync(remotesDependenciesConfigFile, JSON.parse(remotesDependenciesConfigString));
82
+
83
+ const currentRemoteConfig = require(path.join(process.cwd(), '.csdr', '.euirc-csdr-remotes.json'))[currentRemoteName];
84
+
85
+ const remoteSDLCConfigFile = path.join(process.cwd(), '.sdlc-config', 'remotes', '.euirc-remotes.json');
86
+ const remotesSDLCConfig = require(remoteSDLCConfigFile);
87
+
88
+ delete currentRemoteConfig['slack'];
89
+
90
+ currentRemoteConfig['npmPkg'] = currentRemoteConfig['npmPkg'].replace('eui19-remote-el', 'remote-eui19');
91
+
92
+ currentRemoteConfig['msteams'] = { "channel": "pipeline-ui-mwp" };
93
+
94
+ remotesSDLCConfig[newRemoteName] = currentRemoteConfig;
95
+
96
+ tools.writeJsonFileSync(remoteSDLCConfigFile, remotesSDLCConfig);
52
97
  })
53
98
  .catch((e) => {
54
99
  console.log(e);