@eui/tools 6.14.17 → 6.14.19
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/metadata/package.js +32 -18
- package/scripts/csdr/release/app/release-app-group.js +2 -2
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.14.
|
|
1
|
+
6.14.19
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.14.19 (2023-12-14)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* missing argument for release app-group - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([ed46d002](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ed46d002c4daacdf2f2a100e983d1788d0bc10fd))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.14.18 (2023-12-13)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* 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))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.14.17 (2023-12-11)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
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
|
+
})
|
|
@@ -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) => {
|
|
@@ -132,7 +132,7 @@ module.exports.run = () => {
|
|
|
132
132
|
const projects = configUtils.projects.getCsdrProjectsGroupForEuiVersion(projectsGroup, euiVersion);
|
|
133
133
|
|
|
134
134
|
return projects.reduce((promise, project) => {
|
|
135
|
-
return promise.then(() => releaseProject(project, isSnapshot, isSupportBranch, branch));
|
|
135
|
+
return promise.then(() => releaseProject(project, isSnapshot, isSupportBranch, isSupportSnapshotBranch, branch));
|
|
136
136
|
}, Promise.resolve());
|
|
137
137
|
})
|
|
138
138
|
|
|
@@ -145,7 +145,7 @@ module.exports.run = () => {
|
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
const releaseProject = (projectName, isSnapshot, isSupportBranch, branch) => {
|
|
148
|
+
const releaseProject = (projectName, isSnapshot, isSupportBranch, isSupportSnapshotBranch, branch) => {
|
|
149
149
|
const { dryRun } = utils.tools.getArgs();
|
|
150
150
|
|
|
151
151
|
// fetch the project config based on group name
|