@eui/tools 5.3.21 → 5.3.22

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
- 5.3.21
1
+ 5.3.22
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 5.3.22 (2022-06-21)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted routes replacement for local csdr app build - MWP-7700 [MWP-7700](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7700) ([cd35684e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/cd35684e3489edc411c52caf4d874fc660710274))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 5.3.21 (2022-06-21)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.3.21",
3
+ "version": "5.3.22",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -7,12 +7,20 @@ const tools = require('../../tools');
7
7
  const configUtils = require('../../../csdr/config/config-utils');
8
8
 
9
9
 
10
- const getEnvTarget = (envTarget, build) => {
11
- if (!envTarget) {
12
- throw 'ENV_TARGET_NOT_FOUND';
10
+ const getEnvTarget = (envTargetIn, build) => {
11
+ if (!envTargetIn) {
12
+
13
+ // check if envTarget has been provided as cli args for stand-alone local build of CSDR apps
14
+ const { envTarget } = tools.getArgs();
15
+
16
+ if (!envTarget) {
17
+ throw 'ENV_TARGET_NOT_FOUND';
18
+ } else {
19
+ envTargetIn = envTarget;
20
+ }
13
21
  }
14
22
 
15
- let envTargetFinal = envTarget.toLowerCase();
23
+ let envTargetFinal = envTargetIn.toLowerCase();
16
24
 
17
25
  if (build) {
18
26
  // dirty fix as openid files do not respect envTarget names
@@ -22,8 +30,8 @@ const getEnvTarget = (envTarget, build) => {
22
30
 
23
31
  // serve configuration based
24
32
  } else {
25
- if (envTarget.indexOf('local') > -1) {
26
- envTargetFinal = envTarget.replace('-openid', '');
33
+ if (envTargetIn.indexOf('local') > -1) {
34
+ envTargetFinal = envTargetIn.replace('-openid', '');
27
35
  } else {
28
36
  envTargetFinal = 'local-' + envTargetFinal;
29
37
  }