@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.
- package/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/scripts/csdr/init/remotes.js +12 -14
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.12.
|
|
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
|
@@ -203,23 +203,21 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
|
|
|
203
203
|
'assets', 'ag-grid-license', 'license.json'
|
|
204
204
|
);
|
|
205
205
|
|
|
206
|
-
if (
|
|
207
|
-
|
|
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
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
-
|
|
219
|
-
|
|
220
|
-
|
|
215
|
+
tools.logInfo('main.ts content after replacement : ');
|
|
216
|
+
const mainTsContent = tools.getFileContent(mainTsPath);
|
|
217
|
+
console.log(mainTsContent);
|
|
221
218
|
|
|
222
|
-
|
|
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
|