Skip to content

Commit

Permalink
feat: tokens-studio preprocessor in default config
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema committed May 14, 2024
1 parent a748428 commit 342189f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/rare-trainers-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tokens-studio/configurator": patch
---

Add preprocessors tokens-studio in default config, since SD prerelease 27 this must be explicit in the config.
2 changes: 1 addition & 1 deletion src/style-dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { snackbar } from "./components/snackbar/SnackbarManager.js";
const { promises } = fs;

StyleDictionary.registerParser({
name: "js-tokens-parser",
name: "tokens-studio/parser-js",
// matches js, mjs
pattern: /\.(j|mj)s$/,
parser: async ({ filePath }) => {
Expand Down
1 change: 1 addition & 0 deletions src/utils/file-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export async function createConfig() {
JSON.stringify(
{
source: ["**/*.json"],
preprocessors: ["tokens-studio"],
platforms: {
css: {
transformGroup: "tokens-studio",
Expand Down

0 comments on commit 342189f

Please sign in to comment.