@eui/tools 6.12.22 → 6.12.23

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.12.22
1
+ 6.12.23
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.12.23 (2023-06-26)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * license key injection - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([92ab18cd](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/92ab18cdd86d4b44637b60a4a728242506a0a6fe))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.12.22 (2023-06-26)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.12.22",
3
+ "version": "6.12.23",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -203,23 +203,21 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
203
203
  'assets', 'ag-grid-license', 'license.json'
204
204
  );
205
205
 
206
- if (!tools.isFileExists(rootPkgLicensePath)) {
207
- throw 'NO_LICENSE_FILE_FOUND';
208
- }
209
-
210
- const licenseJSON = tools.getJsonFileContent(rootPkgLicensePath);
211
- const license = licenseJSON.license;
212
- tools.logInfo(`license key found : ${license}`);
206
+ if (tools.isFileExists(rootPkgLicensePath)) {
207
+ const licenseJSON = tools.getJsonFileContent(rootPkgLicensePath);
208
+ const license = licenseJSON.license;
209
+ tools.logInfo(`license key found : ${license}`);
213
210
 
214
- const mainTsPath = path.join(remote.paths.src, 'main.ts');
215
- console.log(`replacing in ${mainTsPath}`);
216
- tools.replaceInFileSync(mainTsPath, 'LICENSE_KEY_VALUE', license);
211
+ const mainTsPath = path.join(remote.paths.src, 'main.ts');
212
+ console.log(`replacing in ${mainTsPath}`);
213
+ tools.replaceInFileSync(mainTsPath, 'LICENSE_KEY_VALUE', license);
217
214
 
218
- tools.logInfo('main.ts content after replacement : ');
219
- const mainTsContent = tools.getFileContent(mainTsPath);
220
- console.log(mainTsContent);
215
+ tools.logInfo('main.ts content after replacement : ');
216
+ const mainTsContent = tools.getFileContent(mainTsPath);
217
+ console.log(mainTsContent);
221
218
 
222
- tools.logSuccess('OK => main.ts replaced');
219
+ tools.logSuccess('OK => main.ts replaced');
220
+ }
223
221
  }
224
222
 
225
223
  // if options, all options are checked and default modules defs are injected following certain conditions