@eui/tools 6.21.94 → 6.21.96

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.94
1
+ 6.21.96
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.96 (2025-07-07)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted remote migration creation not to be launch by default - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([0f5d5403](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0f5d54031dd3eba8d5f5c14127b7da6610eadd59))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.95 (2025-07-04)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted audit-styles forced to sdlc packages - remote migration scripts metadata - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([b199af99](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b199af99b1d49412866487513b33afef89239789))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.94 (2025-07-04)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.94",
3
+ "version": "6.21.96",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -760,7 +760,7 @@ module.exports.audit = (pkg) => {
760
760
  tools.logInfo('===> no forced gates flag detected ...');
761
761
  tools.logInfo('Checking if package is newly created -- all versions gates are checked in that case');
762
762
 
763
- if (metadataUtils.packageUtils.isNewPackageBuild(pkg)) {
763
+ if (metadataUtils.packageUtils.isNewPackageBuild(pkg) || pkg.sdlc) {
764
764
  gates = allNewGates;
765
765
  } else {
766
766
  if (euiVersionGates) {
@@ -53,6 +53,13 @@ module.exports.migrate = (pkg) => {
53
53
 
54
54
 
55
55
 
56
+
57
+ // REMOTE CREATION
58
+
59
+ if (!tools.isDirExists(remotesTriggerPath)) {
60
+ return;
61
+ }
62
+
56
63
  tools.logInfo('Duplicating remote config');
57
64
 
58
65
  const remotePrefix = `${pkg.npmPkg.split('/')[0].substr(1)}-${pkg.npmPkg.split('/')[1]}`;
@@ -91,10 +98,11 @@ module.exports.migrate = (pkg) => {
91
98
 
92
99
  currentRemoteConfig['msteams'] = { "channel": "pipeline-ui-mwp" };
93
100
 
101
+ currentRemoteConfig['migrated'] = true;
102
+
94
103
  remotesSDLCConfig[newRemoteName] = currentRemoteConfig;
95
104
 
96
105
  tools.writeJsonFileSync(remoteSDLCConfigFile, remotesSDLCConfig);
97
-
98
106
 
99
107
 
100
108
 
@@ -103,9 +111,7 @@ module.exports.migrate = (pkg) => {
103
111
 
104
112
  const remotesTriggerPath = path.join(process.cwd(), 'remotes-trigger');
105
113
 
106
- if (!tools.isDirExists(remotesTriggerPath)) {
107
- return;
108
- }
114
+
109
115
 
110
116
  tools.copydirFiles(path.join(__dirname, 'skeleton', 'remote-trigger'), path.join(remotesTriggerPath, newRemoteName));
111
117
  tools.replaceInFileSync(path.join(remotesTriggerPath, newRemoteName, '.gitlab-ci.yml'), '@module.remote.name@', newRemoteName);
@@ -129,6 +135,56 @@ module.exports.migrate = (pkg) => {
129
135
  tools.copy(remoteMedatadataVersions, remoteMedatadataVersionsNew);
130
136
 
131
137
  tools.replaceInFileSync(remoteMedatadataVersionsNew, currentRemoteName, newRemoteName);
138
+
139
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '"DEV"', '"dev"');
140
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '"TST"', '"tst"');
141
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '"INT"', '"int"');
142
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '"ACC"', '"acc"');
143
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '"DLT"', '"dlt"');
144
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '"TRN"', '"trn"');
145
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '"PPD"', '"ppd"');
146
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '"PROD"', '"prd"');
147
+
148
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '-TST.', '-tst.');
149
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '-INT.', '-int.');
150
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '-ACC.', '-acc.');
151
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '-DLT.', '-dlt.');
152
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '-TRN.', '-trn.');
153
+ tools.replaceInFileSync(remoteMedatadataVersionsNew, '-PPD.', '-ppd.');
154
+
155
+
156
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '"DEV"', '"dev"');
157
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '"TST"', '"tst"');
158
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '"INT"', '"int"');
159
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '"ACC"', '"acc"');
160
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '"DLT"', '"dlt"');
161
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '"TRN"', '"trn"');
162
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '"PPD"', '"ppd"');
163
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '"PROD"', '"prd"');
164
+
165
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '-TST.', '-tst.');
166
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '-INT.', '-int.');
167
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '-ACC.', '-acc.');
168
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '-DLT.', '-dlt.');
169
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '-TRN.', '-trn.');
170
+ tools.replaceInFileSync(remoteMedatadataHistoryNew, '-PPD.', '-ppd.');
171
+
172
+
173
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '"DEV"', '"dev"');
174
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '"TST"', '"tst"');
175
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '"INT"', '"int"');
176
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '"ACC"', '"acc"');
177
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '"DLT"', '"dlt"');
178
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '"TRN"', '"trn"');
179
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '"PPD"', '"ppd"');
180
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '"PROD"', '"prd"');
181
+
182
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '-TST.', '-tst.');
183
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '-INT.', '-int.');
184
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '-ACC.', '-acc.');
185
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '-DLT.', '-dlt.');
186
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '-TRN.', '-trn.');
187
+ tools.replaceInFileSync(remoteMedatadataEnvsNew, '-PPD.', '-ppd.');
132
188
  })
133
189
  .catch((e) => {
134
190
  console.log(e);