We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e13f2a9 commit c2f17f2Copy full SHA for c2f17f2
packages/calcite-design-tokens/support/token-transformer/styleDictionary/formatter/javascript.ts
@@ -3,12 +3,10 @@ import { default as JsonToTS } from "json-to-ts";
3
import { CalledFormatterFunction, FormatterConfig } from "./utils";
4
5
export const formatJsPlatform: CalledFormatterFunction = (args) => {
6
- const tokens = { ...args.dictionary.allTokens };
7
-
8
return (
9
styleDictionary.formatHelpers.fileHeader({ file: args.file }) +
10
- "export default" +
11
- JSON.stringify(tokens, null, 2) +
+ "export default " +
+ JSON.stringify(args.dictionary.properties, null, 2) +
12
";\n"
13
);
14
};
0 commit comments