@eui/tools 6.3.34 → 6.3.35
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 +9 -0
- package/package.json +1 -1
- package/sandbox.js +11 -6
- package/scripts/csdr/config/global.js +4 -2
- package/scripts/csdr/config/packages.js +7 -3
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.3.
|
|
1
|
+
6.3.35
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.3.35 (2023-02-15)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* euiVersion fetch for packages and remotes - MWP-9204 [MWP-9204](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9204) ([4873c6e4](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/4873c6e40f9822eaeb519a7e8e8236f050e347df))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.3.34 (2023-02-14)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -1157,14 +1157,19 @@ const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
|
1157
1157
|
// })
|
|
1158
1158
|
|
|
1159
1159
|
|
|
1160
|
+
// Promise.resolve()
|
|
1161
|
+
// .then(() => {
|
|
1162
|
+
// const remote = configUtils.remotes.getRemote('cc-task-centre-eui15-remote-el-ui');
|
|
1163
|
+
// return buildPackageUtils.element.postBuild(remote, '1.0.0');
|
|
1164
|
+
// })
|
|
1165
|
+
// .then(() => {
|
|
1166
|
+
// console.log('ok');
|
|
1167
|
+
// })
|
|
1160
1168
|
Promise.resolve()
|
|
1161
1169
|
.then(() => {
|
|
1162
|
-
const
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
.then(() => {
|
|
1166
|
-
console.log('ok');
|
|
1170
|
+
const pkg = configUtils.packages.getPackage('mywp-eusearch-eui10-remote-el-ui');
|
|
1171
|
+
const euiVersion = configUtils.packages.getPackageEuiVersion(pkg, true);
|
|
1172
|
+
console.log(euiVersion);
|
|
1167
1173
|
})
|
|
1168
1174
|
|
|
1169
1175
|
|
|
1170
|
-
|
|
@@ -165,6 +165,8 @@ module.exports.getConfig = () => {
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
module.exports.updateConfig = (args = { project, packages, remotes, reset}) => {
|
|
168
|
+
tools.logInfo('Updating euirc config');
|
|
169
|
+
console.log(args);
|
|
168
170
|
|
|
169
171
|
const configFile = path.join(process.cwd(), '.csdr', '.euirc.json');
|
|
170
172
|
|
|
@@ -194,11 +196,11 @@ module.exports.updateConfig = (args = { project, packages, remotes, reset}) => {
|
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
if (args.packages) {
|
|
197
|
-
newConfig.packages = tools.removeArrayDuplicates([...newConfig.packages, ...args.packages]);
|
|
199
|
+
newConfig.packages = tools.removeArrayDuplicates([...newConfig.packages || [], ...args.packages]);
|
|
198
200
|
}
|
|
199
201
|
|
|
200
202
|
if (args.remotes) {
|
|
201
|
-
newConfig.remotes = tools.removeArrayDuplicates([...newConfig.remotes, ...args.remotes]);
|
|
203
|
+
newConfig.remotes = tools.removeArrayDuplicates([...newConfig.remotes || [], ...args.remotes]);
|
|
202
204
|
}
|
|
203
205
|
}
|
|
204
206
|
|
|
@@ -276,11 +276,15 @@ const getPackageEuiVersion = module.exports.getPackageEuiVersion = (pkg, log = f
|
|
|
276
276
|
|
|
277
277
|
if (pkg.build && pkg.build.euiVersion) {
|
|
278
278
|
version = pkg.build.euiVersion;
|
|
279
|
+
}
|
|
279
280
|
|
|
280
|
-
|
|
281
|
-
|
|
281
|
+
if (!version) {
|
|
282
|
+
if (pkg.euiVersion) {
|
|
283
|
+
version = pkg.euiVersion;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
282
286
|
|
|
283
|
-
|
|
287
|
+
if (!version) {
|
|
284
288
|
version = getEuiVersionCore(pkg);
|
|
285
289
|
}
|
|
286
290
|
|