@eui/tools 4.19.16 → 4.19.17
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.19.
|
|
1
|
+
4.19.17
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 4.19.17 (2022-03-09)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* generated empty index.html for remote post-build bundle - force remove yarn.lock on package release - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([4f3dd96f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/4f3dd96fa76bd6e31038e189686d97c8d00b6abd))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 4.19.16 (2022-03-09)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
// GLOBAL
|
|
4
|
+
const path = require('path');
|
|
4
5
|
|
|
5
6
|
// UTILS
|
|
6
7
|
const utils = require('../../../utils');
|
|
@@ -81,6 +82,12 @@ module.exports.init = (pkg) => {
|
|
|
81
82
|
return metadataUtils.common.cloneMetadataRepo();
|
|
82
83
|
})
|
|
83
84
|
|
|
85
|
+
// REMOVE YARN.LOCK
|
|
86
|
+
.then(() => {
|
|
87
|
+
utils.tools.logInfo('Removing yarn.lock');
|
|
88
|
+
return utils.tools.remove(path.join(process.cwd(), 'yarn.lock'));
|
|
89
|
+
})
|
|
90
|
+
|
|
84
91
|
.catch((e) => {
|
|
85
92
|
throw e;
|
|
86
93
|
})
|
|
@@ -179,6 +179,16 @@ module.exports.postBuild = (pkg, version) => {
|
|
|
179
179
|
tools.logInfo('Copying package.json to dist');
|
|
180
180
|
return tools.copy(path.join(pkg.paths.pkgRootDirectory, 'package.json'), path.join(pkg.paths.pkgBuild, 'package.json'));
|
|
181
181
|
})
|
|
182
|
+
.then(() => {
|
|
183
|
+
try {
|
|
184
|
+
tools.logInfo('Set empty index.html');
|
|
185
|
+
const emptyIndexHtmlFile = path.join(__dirname, 'skeletons', 'elements', 'index.html');
|
|
186
|
+
const outputIndexHmtlFile = path.join(pkg.paths.pkgBuild, 'bundles', 'index.html');
|
|
187
|
+
return tools.copy(emptyIndexHtmlFile, outputIndexHmtlFile);
|
|
188
|
+
} catch(e) {
|
|
189
|
+
console.log(e);
|
|
190
|
+
}
|
|
191
|
+
})
|
|
182
192
|
.catch((e) => {
|
|
183
193
|
throw e;
|
|
184
194
|
})
|