@eui/tools 6.15.4 → 6.15.6

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.15.4
1
+ 6.15.6
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.15.6 (2024-01-11)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adjusted aggrid license injection for virtual remotes - EUI-71212 [EUI-71212](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-71212) ([0b47c90c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0b47c90c0338fb5f530fcee2723f56b8c3f89ba5))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.15.5 (2023-12-18)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * wrong import of tools - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([ae23309b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ae23309bb7e6843766fa6926f6a92c9c72288701))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.15.4 (2023-12-17)
2
20
 
3
21
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.15.4",
3
+ "version": "6.15.6",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -187,40 +187,40 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
187
187
  let providersContent = [];
188
188
  let constructorDeclarationsContent = [];
189
189
 
190
+ // ag-grid license specific main.ts
191
+ // license token is replaced at post-install, we get it from the remote root UI pkg assets at specific location
192
+ if (remote.skeletonConfig.aggridLicenseInjection) {
193
+ tools.copy(optionAgGridPath, remoteSrcPath);
194
+
195
+ const rootPkgLicensePath = path.join(
196
+ remote.paths.repoNodeModules,
197
+ remote.skeletonConfig.rootNpmPkg,
198
+ 'assets', 'ag-grid-license', 'license.json'
199
+ );
200
+
201
+ if (tools.isFileExists(rootPkgLicensePath)) {
202
+ const licenseJSON = tools.getJsonFileContent(rootPkgLicensePath);
203
+ const license = licenseJSON.license;
204
+ tools.logInfo(`license key found : ${license}`);
205
+
206
+ const mainTsPath = path.join(remote.paths.src, 'main.ts');
207
+ console.log(`replacing in ${mainTsPath}`);
208
+ tools.replaceInFileSync(mainTsPath, 'LICENSE_KEY_VALUE', license);
209
+
210
+ tools.logInfo('main.ts content after replacement : ');
211
+ const mainTsContent = tools.getFileContent(mainTsPath);
212
+ console.log(mainTsContent);
213
+
214
+ tools.logSuccess('OK => main.ts replaced');
215
+ }
216
+ }
217
+
190
218
  // checking options
191
219
 
192
220
  // if no options found, we inject default modules defs
193
221
  if (!remote.skeletonConfig.options) {
194
222
  definitionsContent.push('StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks })');
195
223
 
196
- // ag-grid license specific main.ts
197
- // license token is replaced at post-install, we get it from the remote root UI pkg assets at specific location
198
- if (remote.skeletonConfig.aggridLicenseInjection) {
199
- tools.copy(optionAgGridPath, remoteSrcPath);
200
-
201
- const rootPkgLicensePath = path.join(
202
- remote.paths.repoNodeModules,
203
- remote.skeletonConfig.rootNpmPkg,
204
- 'assets', 'ag-grid-license', 'license.json'
205
- );
206
-
207
- if (tools.isFileExists(rootPkgLicensePath)) {
208
- const licenseJSON = tools.getJsonFileContent(rootPkgLicensePath);
209
- const license = licenseJSON.license;
210
- tools.logInfo(`license key found : ${license}`);
211
-
212
- const mainTsPath = path.join(remote.paths.src, 'main.ts');
213
- console.log(`replacing in ${mainTsPath}`);
214
- tools.replaceInFileSync(mainTsPath, 'LICENSE_KEY_VALUE', license);
215
-
216
- tools.logInfo('main.ts content after replacement : ');
217
- const mainTsContent = tools.getFileContent(mainTsPath);
218
- console.log(mainTsContent);
219
-
220
- tools.logSuccess('OK => main.ts replaced');
221
- }
222
- }
223
-
224
224
  // if options, all options are checked and default modules defs are injected following certain conditions
225
225
  } else {
226
226
  const pushContent = (obj) => {
@@ -140,7 +140,7 @@ module.exports.run = () => {
140
140
  }
141
141
  })
142
142
  .catch((e) => {
143
- tools.logError('Error generating diffs report for current remote processed :');
143
+ utils.tools.logError('Error generating diffs report for current remote processed :');
144
144
  console.log(e);
145
145
  })
146
146
  }