@eui/tools 6.16.13 → 6.16.14

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.16.13
1
+ 6.16.14
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.16.14 (2024-04-25)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * added option for folder removal at post-build time - EUI-9014 [EUI-9014](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9014) ([54c26eb5](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/54c26eb5f2e1cb2e8ae638c1c35c9e15c20fc3d6))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.16.13 (2024-04-18)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.16.13",
3
+ "version": "6.16.14",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -265,6 +265,18 @@ module.exports.build = (pkg) => {
265
265
  .then(() => {
266
266
  return tools.copydir(srcFolder + '/assets', distFolder + '/assets');
267
267
  })
268
+ .then(() => {
269
+ if (pkg.build && pkg.build.skipPublicationFolders) {
270
+ return pkg.build.skipPublicationFolders.reduce((promise, folder) => {
271
+ return promise.then(() => (
272
+ tools.rimraf(path.join(distFolder, folder))
273
+ )).catch((e) => {
274
+ console.log(e);
275
+ throw e;
276
+ });
277
+ }, Promise.resolve());
278
+ }
279
+ })
268
280
  .then(() => {
269
281
  console.log('assets copy succeeded');
270
282
  tools.copy(path.join(pkg.paths.root, 'package.json'), path.join(pkg.paths.dist, 'package.json'));