@aurodesignsystem/auro-library 2.4.6 → 2.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ ## [2.4.7](https://github.com/AlaskaAirlines/auro-library/compare/v2.4.6...v2.4.7) (2024-02-07)
4
+
5
+
6
+ ### Performance Improvements
7
+
8
+ * update template ([54c3da8](https://github.com/AlaskaAirlines/auro-library/commit/54c3da858e5b898bd1ade63b4ade324c78ee5379))
9
+
3
10
  ## [2.4.6](https://github.com/AlaskaAirlines/auro-library/compare/v2.4.5...v2.4.6) (2024-02-07)
4
11
 
5
12
 
@@ -22,6 +22,8 @@ function nameExtraction() {
22
22
 
23
23
  let pName = JSON.parse(packageJson).name;
24
24
  let pVersion = JSON.parse(packageJson).version;
25
+ let pdtVersion = JSON.parse(packageJson).peerDependencies['\@aurodesignsystem/design-tokens'].substring(1)
26
+ let wcssVersion = JSON.parse(packageJson).peerDependencies['\@aurodesignsystem/webcorestylesheets'].substring(1)
25
27
 
26
28
  let npmStart = pName.indexOf('@');
27
29
  let namespaceStart = pName.indexOf('/');
@@ -33,7 +35,9 @@ function nameExtraction() {
33
35
  'namespaceCap': pName.substring(namespaceStart + 1)[0].toUpperCase() + pName.substring(namespaceStart + 2, nameStart),
34
36
  'name': pName.substring(nameStart + 1),
35
37
  'nameCap': pName.substring(nameStart + 1)[0].toUpperCase() + pName.substring(nameStart + 2),
36
- 'version': pVersion
38
+ 'version': pVersion,
39
+ 'tokensVersion': pdtVersion,
40
+ 'wcssVersion': wcssVersion
37
41
  };
38
42
 
39
43
  return result;
@@ -56,6 +60,8 @@ function formatTemplateFileContents(content, destination) {
56
60
  result = result.replace(/\[namespace]/g, nameExtractionData.namespace);
57
61
  result = result.replace(/\[Namespace]/g, nameExtractionData.namespaceCap);
58
62
  result = result.replace(/\[Version]/g, nameExtractionData.version);
63
+ result = result.replace(/\[dtVersion]/g, nameExtractionData.tokensVersion);
64
+ result = result.replace(/\[wcssVersion]/g, nameExtractionData.wcssVersion);
59
65
 
60
66
  /**
61
67
  * Cleanup line breaks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem/auro-library",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "description": "This repository holds shared scripts, utilities, and workflows utilized across repositories along the Auro Design System.",
5
5
  "repository": {
6
6
  "type": "git",