@adobe/spectrum-tokens 12.0.0-beta.31 → 12.0.0-beta.36

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,6 +1,6 @@
1
- # [12.0.0-beta.31](https://github.com/adobe/spectrum-tokens/compare/v12.0.0-beta.30...v12.0.0-beta.31) (2022-06-14)
1
+ # [12.0.0-beta.36](https://github.com/adobe/spectrum-tokens/compare/v12.0.0-beta.35...v12.0.0-beta.36) (2022-06-23)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * adds missing express data for radio tokens ([c98cc83](https://github.com/adobe/spectrum-tokens/commit/c98cc83b8437e5434bee43f88d6d2e43e000c9ab))
6
+ * add semantic-release-mirror-version for drover output ([5c5e6df](https://github.com/adobe/spectrum-tokens/commit/5c5e6df62cf349a1e3ee957201bb051db7f5fe3d))
package/config.js CHANGED
@@ -13,9 +13,15 @@ governing permissions and limitations under the License.
13
13
  const StyleDictionary = require("style-dictionary");
14
14
  const JsonSetsFormatter = require("style-dictionary-sets").JsonSetsFormatter;
15
15
  const NameKebabTransfom = require("style-dictionary-sets").NameKebabTransfom;
16
+ const DroverJsonFormatter =
17
+ require("style-dictionary-sets").DroverJsonFormatter;
18
+ const AttributeSetsTransform =
19
+ require("style-dictionary-sets").AttributeSetsTransform;
16
20
 
21
+ StyleDictionary.registerTransform(AttributeSetsTransform);
17
22
  StyleDictionary.registerTransform(NameKebabTransfom);
18
23
  StyleDictionary.registerFormat(JsonSetsFormatter);
24
+ StyleDictionary.registerFormat(DroverJsonFormatter);
19
25
 
20
26
  module.exports = {
21
27
  source: ["src/**/*.json"],
@@ -34,5 +40,19 @@ module.exports = {
34
40
  },
35
41
  ],
36
42
  },
43
+ Drover: {
44
+ buildPath: "dist/json/",
45
+ transforms: [AttributeSetsTransform.name, NameKebabTransfom.name],
46
+ files: [
47
+ {
48
+ destination: "drover.json",
49
+ format: "drover/json/sets",
50
+ options: {
51
+ showFileHeader: false,
52
+ outputReferences: true,
53
+ },
54
+ },
55
+ ],
56
+ },
37
57
  },
38
58
  };