@eui/tools 5.3.87 → 5.3.88

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.87
1
+ 5.3.88
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 5.3.88 (2022-10-31)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * prevent injection when externalSources not setup - MWP-8915 [MWP-8915](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8915) ([6094059c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/6094059ca5094c4a363fc49cde083e348e00c7ee))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 5.3.87 (2022-10-28)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.3.87",
3
+ "version": "5.3.88",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -184,6 +184,13 @@ module.exports.injectExternalAppSources = (project, build = false) => {
184
184
  tools.logTitle(`Injecting project external application sources for : ${project.name}`);
185
185
 
186
186
  return Promise.resolve()
187
+ .then(() => {
188
+ if (!project.externalSources) {
189
+ tools.logInfo('No external app sources setup...skipping');
190
+ return;
191
+ }
192
+ })
193
+
187
194
  .then(() => {
188
195
  if (!build) {
189
196
  // removing previously injected content, except assets
@@ -211,11 +218,6 @@ module.exports.injectExternalAppSources = (project, build = false) => {
211
218
  }
212
219
  })
213
220
  .then(() => {
214
- if (!project.externalSources) {
215
- tools.logInfo('No external app sources setup...skipping');
216
- return;
217
- }
218
-
219
221
  // in case of multiple injection are defined, we promise loop on each injection
220
222
  if (Array.isArray(project.externalSources)) {
221
223
  return Promise.resolve().then(() => {