@eui/tools 5.2.4 → 5.2.7

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.2.4
1
+ 5.2.7
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 5.2.7 (2022-05-13)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * temp adapt TRN and DLT env for app build non-optimized - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([af7b42bb](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/af7b42bb3db8240fa1c5d0ff76236dc402e99f01))
7
+
8
+ * * *
9
+ * * *
10
+ ## 5.2.6 (2022-05-12)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * added forced utf-8 charset for node-sass compilation of styles - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([44240fd5](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/44240fd54e6f9f735e1f51c734720f04cf4734cf))
16
+
17
+ * * *
18
+ * * *
19
+ ## 5.2.5 (2022-05-12)
20
+
21
+ ##### Bug Fixes
22
+
23
+ * **eui-tools:**
24
+ * sub-package build issue - EUI-5961 [EUI-5961](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5961) ([8dcb702b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/8dcb702b8f59ccee550c10177bdd3cab6f50b5a9))
25
+
26
+ * * *
27
+ * * *
1
28
  ## 5.2.4 (2022-05-05)
2
29
 
3
30
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.2.4",
3
+ "version": "5.2.7",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -1340,7 +1340,7 @@ module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath) =>
1340
1340
 
1341
1341
  let projectDef = JSON.stringify(angularPackageSubEntryDef);
1342
1342
 
1343
- let replacePath = tools.replaceAll(projectDef, '@subEntry.path@', subEntryPath)
1343
+ let replacePath = tools.replaceAll(projectDef, '@subEntry.path@', subEntryName)
1344
1344
  replacePath = tools.replaceAll(replacePath, '@subEntry.package.name@', 'ng-package.json');
1345
1345
 
1346
1346
  jsonFile['projects'][subEntryName] = JSON.parse(replacePath);
@@ -156,7 +156,7 @@ module.exports.angular = (envTarget, isSnapshot, version, configEnvTargetIn) =>
156
156
  } else {
157
157
 
158
158
  let isOptimizedBuild = false;
159
- if (envTarget && !(envTarget === 'DEV' || envTarget === 'TST')) {
159
+ if (envTarget && !(envTarget === 'DEV' || envTarget === 'TST' || envTarget === 'TRN' || envTarget === 'DLT')) {
160
160
  isOptimizedBuild = true;
161
161
  }
162
162
 
@@ -76,6 +76,11 @@ const compileSassFileNodeSass = (folder, filename, isNodeSassTildeImporterActive
76
76
 
77
77
  .then((output) => {
78
78
  // console.log(output);
79
+ tools.logInfo('forcing utf-8 charset');
80
+ let fileContent = tools.getFileContent(`${filePath}.css`);
81
+ fileContent = '@charset "UTF-8";' + fileContent;
82
+ tools.writeFileContent(`${filePath}.css`, fileContent);
83
+
79
84
  console.log('Size ::: ' + fs.statSync(filePath + '.css').size);
80
85
 
81
86
  tools.logSuccess(`OK ==> generated ${filePath}.css`);
@@ -412,7 +412,7 @@ function getFiles(parentPath) {
412
412
 
413
413
  function getFilesGlob(from, fileGlob) {
414
414
  return new Promise((resolve, reject) => {
415
- glob(fileGlob, { cwd: from, nodir: true, follow: true, dot: true }, (err, files) => {
415
+ glob(fileGlob, { ignore: ['dist/**'], cwd: from, nodir: true, follow: true, dot: true }, (err, files) => {
416
416
  if (err) {
417
417
  logError(err);
418
418
  reject(err);