@patternfly/react-tokens 6.0.0-alpha.33 → 6.0.0-alpha.34

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
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [6.0.0-alpha.34](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-tokens@6.0.0-alpha.33...@patternfly/react-tokens@6.0.0-alpha.34) (2024-08-08)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-tokens
9
+
6
10
  # [6.0.0-alpha.33](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-tokens@6.0.0-alpha.32...@patternfly/react-tokens@6.0.0-alpha.33) (2024-07-29)
7
11
 
8
12
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-tokens",
3
- "version": "6.0.0-alpha.33",
3
+ "version": "6.0.0-alpha.34",
4
4
  "description": "This library provides access to the design tokens of PatternFly 4 from JavaScript",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -33,5 +33,5 @@
33
33
  "css": "^3.0.0",
34
34
  "fs-extra": "^11.2.0"
35
35
  },
36
- "gitHead": "30e3c0351127628ce69c479a7f3157277fb9e7d1"
36
+ "gitHead": "19631bb68902f7cd7b0c3c20d08088b94eab321d"
37
37
  }
@@ -38,7 +38,7 @@ const allIndex = {};
38
38
  const componentIndex = [];
39
39
 
40
40
  const outputIndex = (index, indexFile) => {
41
- const esmIndexString = index.map(file => `export { ${file} } from './${file}';`).join('\n');
41
+ const esmIndexString = index.map((file) => `export { ${file} } from './${file}';`).join('\n');
42
42
  outputFileSync(join(outDir, 'esm', indexFile), esmIndexString);
43
43
  outputFileSync(
44
44
  join(outDir, 'js', indexFile),
@@ -48,7 +48,7 @@ function __export(m) {
48
48
  for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
49
49
  }
50
50
  exports.__esModule = true;
51
- ${index.map(file => `__export(require('./${file}'));`).join('\n')}
51
+ ${index.map((file) => `__export(require('./${file}'));`).join('\n')}
52
52
  `.trim()
53
53
  );
54
54
  outputFileSync(join(outDir, 'esm', indexFile.replace('.js', '.d.ts')), esmIndexString);
@@ -72,7 +72,7 @@ function writeTokens(tokens) {
72
72
 
73
73
  // Legacy token support -- values may be incorrect.
74
74
  Object.values(tokenValue)
75
- .map(values => Object.entries(values))
75
+ .map((values) => Object.entries(values))
76
76
  .reduce((acc, val) => acc.concat(val), []) // flatten
77
77
  .forEach(([oldTokenName, { name, value }]) => {
78
78
  const isChart = oldTokenName.includes('chart');