Skip to content

Commit c2f17f2

Browse files
committed
WIP: fixed!
1 parent e13f2a9 commit c2f17f2

File tree

1 file changed

+2
-4
lines changed
  • packages/calcite-design-tokens/support/token-transformer/styleDictionary/formatter

1 file changed

+2
-4
lines changed

packages/calcite-design-tokens/support/token-transformer/styleDictionary/formatter/javascript.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ import { default as JsonToTS } from "json-to-ts";
33
import { CalledFormatterFunction, FormatterConfig } from "./utils";
44

55
export const formatJsPlatform: CalledFormatterFunction = (args) => {
6-
const tokens = { ...args.dictionary.allTokens };
7-
86
return (
97
styleDictionary.formatHelpers.fileHeader({ file: args.file }) +
10-
"export default" +
11-
JSON.stringify(tokens, null, 2) +
8+
"export default " +
9+
JSON.stringify(args.dictionary.properties, null, 2) +
1210
";\n"
1311
);
1412
};

0 commit comments

Comments
 (0)