@eui/tools 5.2.3 → 5.2.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
- 5.2.3
1
+ 5.2.6
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 5.2.6 (2022-05-12)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * 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))
7
+
8
+ * * *
9
+ * * *
10
+ ## 5.2.5 (2022-05-12)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **eui-tools:**
15
+ * 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))
16
+
17
+ * * *
18
+ * * *
19
+ ## 5.2.4 (2022-05-05)
20
+
21
+ ##### Bug Fixes
22
+
23
+ * **other:**
24
+ * wrong dependencies resolutions when not dependencies parent in composite of project - EUI-5632 [EUI-5632](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5632) ([3c4e8300](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3c4e8300d893cbdadc50a28b2bb019617288ca2c))
25
+
26
+ * * *
27
+ * * *
1
28
  ## 5.2.3 (2022-05-03)
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.3",
3
+ "version": "5.2.6",
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);
@@ -303,8 +303,14 @@ const getLocalProjectDeps = (prj) => {
303
303
 
304
304
  // check dependencies composite file - default
305
305
  const prjCompJsonFile = path.join(process.cwd(), prj.folder, 'dependencies-composite.json');
306
- const prjCompDeps = tools.getJsonFileContent(prjCompJsonFile).dependencies || {};
307
306
 
307
+ const depsJson = tools.getJsonFileContent(prjCompJsonFile);
308
+ let prjCompDeps;
309
+ if (depsJson.dependencies) {
310
+ prjCompDeps = depsJson.dependencies || {};
311
+ } else {
312
+ prjCompDeps = depsJson || {}
313
+ }
308
314
  return { ...prjDeps, ...prjCompDeps };
309
315
  }
310
316
 
@@ -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);