@eui/tools 6.20.16 → 6.20.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.
@@ -1 +1 @@
1
- 6.20.16
1
+ 6.20.17
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.20.17 (2024-08-09)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * standalone remote post-build adaptations for v18 - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([964c8830](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/964c883070201f60dc240ad12c7f228f8eb27790))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.20.16 (2024-08-09)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.20.16",
3
+ "version": "6.20.17",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -11,7 +11,6 @@ const initUtils = require('../../init/init-utils');
11
11
  const configUtils = require('../../config/config-utils');
12
12
  const metadataUtils = require('../../metadata/metadata-utils');
13
13
  const installUtils = require('../../install/install-utils');
14
- const versionUtils = require('../../version/version-utils');
15
14
 
16
15
 
17
16
  // INNER MODULES
@@ -20,8 +19,7 @@ const innerCommon = require('./common');
20
19
  // LOCAL TEST :
21
20
  // - symlink eUI tools sources to node_modules of standalone pkg folder node_modules to test
22
21
  // - execute this command on the standalone pkg folder :
23
- // npx @eui/tools release-remote-standalone --remoteName zzz-test-remote-eui18 --envTarget DEV --dryRun --debug --debugNotification --debugGitUpdates --skipPublish
24
-
22
+ // npx @eui/tools release-remote-standalone --remoteName zzz-test-remote-eui18 --envTarget DEV --debug --debugNotification --debugGitUpdates --skipPublish --skipGitUpdates --skipNotification
25
23
 
26
24
 
27
25
  module.exports.run = () => {
@@ -118,7 +118,11 @@ module.exports.postBuild = (pkg, version) => {
118
118
  tools.logTitle('ELEMENT POST build');
119
119
  tools.logInfo('Copying dist to bundles folder');
120
120
  tools.mkdir(path.join(pkg.paths.dist, 'bundles'));
121
- return tools.copydir(path.join(pkg.paths.dist), path.join(pkg.paths.dist, 'bundles'));
121
+ if (euiVersionNumber >= 18) {
122
+ tools.copydirFiles(path.join(pkg.paths.dist, 'browser'), path.join(pkg.paths.dist));
123
+ tools.remove(path.join(pkg.paths.dist, 'browser'));
124
+ }
125
+ tools.copydir(path.join(pkg.paths.dist), path.join(pkg.paths.dist, 'bundles'));
122
126
  })
123
127
 
124
128
  .then(() => {
@@ -6,7 +6,7 @@ const apiUtils = require('../api-utils');
6
6
  const configUtils = require('../../csdr/config/config-utils');
7
7
 
8
8
  // ARGS
9
- const { dryRun, debug, debugNotification } = tools.getArgs();
9
+ const { dryRun, debug, debugNotification, skipNotification } = tools.getArgs();
10
10
 
11
11
 
12
12
  const getChannelHook = module.exports.getChannelHook = (channelName) => {
@@ -206,7 +206,13 @@ module.exports.sendMessage = (config, messageContent, standalone = false) => {
206
206
  host = configUtils.global.getConfigOptions().MSTEAMS_HOST;
207
207
  }
208
208
 
209
- return apiUtils.post(host, channelHook, JSON.parse(JSON.stringify(payload, null, 2)));
209
+ if (dryRun || skipNotification) {
210
+ tools.logInfo('DRY-RUN or skipNotification active...skipping');
211
+ return Promise.resolve();
212
+ } else {
213
+ return apiUtils.post(host, channelHook, JSON.parse(JSON.stringify(payload, null, 2)));
214
+ }
215
+
210
216
  })
211
217
  .then((response) => {
212
218
  console.log(response);