@eui/tools 6.14.16 → 6.14.18
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.
- package/.version.properties +1 -1
- package/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/sandbox.js +10 -0
- package/scripts/csdr/install/local-dev.js +0 -13
- package/scripts/csdr/metadata/package.js +32 -18
- package/scripts/csdr/release/package/build-pr-scan.js +0 -5
- package/scripts/csdr/release/package/common.js +0 -14
- package/scripts/csdr/release/package/release-old-remote.js +0 -7
- package/scripts/csdr/release/package/release-virtual-remote.js +2 -6
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.14.
|
|
1
|
+
6.14.18
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.14.18 (2023-12-13)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* versions fetch of package from npm when new pkg is created - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([42adf054](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/42adf054f0882068eb18b3f5413e04adb7cd8c26))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.14.17 (2023-12-11)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* remove clone of devops-metadata for local install - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([557ce0f1](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/557ce0f14bb44b8cc6a5e52ff8480cdda52ef45e))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.14.16 (2023-12-10)
|
|
2
20
|
|
|
3
21
|
##### Bug Fixes
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -1501,3 +1501,13 @@ const publishUtils = require('./scripts/utils/publish/publish-utils');
|
|
|
1501
1501
|
// // const test = configUtils.packages.isRemote('sedia-mop-ui');
|
|
1502
1502
|
// // console.log(test);
|
|
1503
1503
|
// })
|
|
1504
|
+
|
|
1505
|
+
Promise.resolve()
|
|
1506
|
+
.then(() => {
|
|
1507
|
+
const pkg = configUtils.packages.getPackage('pmob-sysper-ui', true);
|
|
1508
|
+
|
|
1509
|
+
return metadataUtils.package.isNewPackageBuild(pkg);
|
|
1510
|
+
})
|
|
1511
|
+
.then((output) => {
|
|
1512
|
+
console.log(output);
|
|
1513
|
+
})
|
|
@@ -15,10 +15,6 @@ module.exports.installPackage = (pkgName) => {
|
|
|
15
15
|
const pkg = configUtils.packages.getPackage(pkgName, false, true);
|
|
16
16
|
|
|
17
17
|
return Promise.resolve()
|
|
18
|
-
.then(() => {
|
|
19
|
-
return metadataUtils.common.cloneMetadataRepo(true);
|
|
20
|
-
})
|
|
21
|
-
|
|
22
18
|
.then(() => {
|
|
23
19
|
if (pkg.remote) {
|
|
24
20
|
return innerRemotes.installDeps(pkg);
|
|
@@ -38,10 +34,6 @@ module.exports.installRemote = (remoteName) => {
|
|
|
38
34
|
const remote = configUtils.remotes.getRemote(remoteName);
|
|
39
35
|
|
|
40
36
|
return Promise.resolve()
|
|
41
|
-
.then(() => {
|
|
42
|
-
return metadataUtils.common.cloneMetadataRepo(true);
|
|
43
|
-
})
|
|
44
|
-
|
|
45
37
|
.then(() => {
|
|
46
38
|
return innerRemotes.installDeps(remote);
|
|
47
39
|
})
|
|
@@ -60,11 +52,6 @@ module.exports.install = (providedDeps) => {
|
|
|
60
52
|
}
|
|
61
53
|
|
|
62
54
|
return Promise.resolve()
|
|
63
|
-
|
|
64
|
-
// .then(() => {
|
|
65
|
-
// return metadataUtils.common.cloneMetadataRepo(true);
|
|
66
|
-
// })
|
|
67
|
-
|
|
68
55
|
// getting internal packages deps - cloned locally
|
|
69
56
|
.then(() => {
|
|
70
57
|
return innerPackages.getLocalPackagesDeps();
|
|
@@ -180,30 +180,44 @@ module.exports.storeMetadataAssets = (pkg, pkgCompositeDeps) => {
|
|
|
180
180
|
};
|
|
181
181
|
|
|
182
182
|
const getPackageVersions = (module.exports.getPackageVersions = (pkg) => {
|
|
183
|
+
let npmOutput;
|
|
183
184
|
try {
|
|
184
|
-
|
|
185
|
+
npmOutput = execa.sync('npm', ['view', pkg.npmPkg, '--json']).stdout;
|
|
185
186
|
if (npmOutput.trim() === '') {
|
|
186
187
|
npmOutput = execa.sync('npm', ['view', `${pkg.npmPkg}@snapshot`, '--json']).stdout;
|
|
187
188
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
name: pkg.name,
|
|
193
|
-
version: v,
|
|
194
|
-
major: v.split('.')[0],
|
|
195
|
-
snapshot: v.indexOf('snapshot') > -1,
|
|
196
|
-
hotfix: v.indexOf('snapshot') === -1 && v.indexOf('-rc.') === -1 && v.indexOf('-') > -1,
|
|
197
|
-
rc: v.indexOf('-rc.') > -1,
|
|
198
|
-
date: json.time[v],
|
|
199
|
-
};
|
|
200
|
-
});
|
|
189
|
+
} catch(e) {
|
|
190
|
+
npmOutput = e.stdout;
|
|
191
|
+
}
|
|
192
|
+
const json = JSON.parse(npmOutput);
|
|
201
193
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
194
|
+
let versions = [];
|
|
195
|
+
|
|
196
|
+
if (json.error) {
|
|
197
|
+
tools.logWarning('Error detected while trying to fetch the pkg version');
|
|
198
|
+
console.log(json.error);
|
|
199
|
+
|
|
200
|
+
} else {
|
|
201
|
+
if (json.versions) {
|
|
202
|
+
versions = json.versions.map((v) => {
|
|
203
|
+
return {
|
|
204
|
+
name: pkg.name,
|
|
205
|
+
version: v,
|
|
206
|
+
major: v.split('.')[0],
|
|
207
|
+
snapshot: v.indexOf('snapshot') > -1,
|
|
208
|
+
hotfix: v.indexOf('snapshot') === -1 && v.indexOf('-rc.') === -1 && v.indexOf('-') > -1,
|
|
209
|
+
rc: v.indexOf('-rc.') > -1,
|
|
210
|
+
date: json.time[v],
|
|
211
|
+
};
|
|
212
|
+
});
|
|
213
|
+
}
|
|
206
214
|
}
|
|
215
|
+
|
|
216
|
+
if (versions.length === 0) {
|
|
217
|
+
tools.logWarning(`Pkg versions not found for ${pkg.name} - ${pkg.npmPkg}`);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
return versions;
|
|
207
221
|
});
|
|
208
222
|
|
|
209
223
|
module.exports.getPackageVersionsLatest = (pkg) => {
|
|
@@ -35,11 +35,6 @@ module.exports.run = () => {
|
|
|
35
35
|
utils.tools.logVersion();
|
|
36
36
|
})
|
|
37
37
|
|
|
38
|
-
// FOR UI and REMOTES clone metadata repositories
|
|
39
|
-
.then(() => {
|
|
40
|
-
return innerCommon.cloneMetadataReposCentral();
|
|
41
|
-
})
|
|
42
|
-
|
|
43
38
|
// INSTALL dependencies by type
|
|
44
39
|
.then(() => {
|
|
45
40
|
return Promise.resolve()
|
|
@@ -175,20 +175,6 @@ module.exports.cloneMetadataRepos = (pkg) => {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
|
|
178
|
-
module.exports.cloneMetadataReposCentral = () => {
|
|
179
|
-
utils.tools.logBanner('CLONE CENTRAL METADATA REPO');
|
|
180
|
-
|
|
181
|
-
return Promise.resolve()
|
|
182
|
-
.then(() => {
|
|
183
|
-
// cloning metadata repo as further installation is based on historical builds from the past
|
|
184
|
-
return metadataUtils.common.cloneMetadataRepo(true);
|
|
185
|
-
})
|
|
186
|
-
.catch((e) => {
|
|
187
|
-
throw e;
|
|
188
|
-
})
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
192
178
|
module.exports.preReleaseChecks = (pkg) => {
|
|
193
179
|
utils.tools.logBanner('PRE-RELEASE checks');
|
|
194
180
|
|
|
@@ -157,13 +157,6 @@ module.exports.run = () => {
|
|
|
157
157
|
}
|
|
158
158
|
})
|
|
159
159
|
|
|
160
|
-
// STORING PACKAGE HISTORY
|
|
161
|
-
.then(() => {
|
|
162
|
-
if (branches.isMaster) {
|
|
163
|
-
return innerCommon.generateDiffReport(pkg, newVersion);
|
|
164
|
-
}
|
|
165
|
-
})
|
|
166
|
-
|
|
167
160
|
// COMMITING METADATA
|
|
168
161
|
.then(() => {
|
|
169
162
|
if (branches.isMaster) {
|
|
@@ -119,9 +119,7 @@ module.exports.run = () => {
|
|
|
119
119
|
|
|
120
120
|
// STORING PACKAGE HISTORY
|
|
121
121
|
.then(() => {
|
|
122
|
-
|
|
123
|
-
return innerCommon.generateDiffReport(pkg, newVersion);
|
|
124
|
-
}
|
|
122
|
+
return innerCommon.generateDiffReport(pkg, newVersion);
|
|
125
123
|
})
|
|
126
124
|
|
|
127
125
|
// COMMITING METADATA
|
|
@@ -132,9 +130,7 @@ module.exports.run = () => {
|
|
|
132
130
|
|
|
133
131
|
// EXPORT ADDITIONAL PIPELINE VARIABLES
|
|
134
132
|
.then(() => {
|
|
135
|
-
|
|
136
|
-
return innerCommon.exportPipelineVariables(pkg, compositeType);
|
|
137
|
-
}
|
|
133
|
+
return innerCommon.exportPipelineVariables(pkg, compositeType);
|
|
138
134
|
})
|
|
139
135
|
|
|
140
136
|
// SEND SUCCESS NOTIFICATION
|