Skip to content

Commit

Permalink
fix math resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfrancisco committed Dec 9, 2024
1 parent 9e98718 commit 27998e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-lamps-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@design-system-pro/token-tinker": patch
---

fix math resolution
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { expandTypesMap, register } from "@tokens-studio/sd-transforms";
import StyleDictionary from "style-dictionary";

async function run(): Promise<void> {
const tokensPath = core.getInput("tokens-path") || "./example/";
const tokensPath = core.getInput("tokens-path") || "./tokens/";
const buildPath = core.getInput("build-path") || "./build/";
const isSingleFileExport = core.getInput("tokens-export-type") !== "multiple";

Expand All @@ -24,7 +24,8 @@ async function run(): Promise<void> {
platforms: {
css: {
transformGroup: "tokens-studio",
transforms: ["ts/color/modifiers", "name/kebab"],
transforms: ["ts/color/modifiers", "ts/resolveMath", "name/kebab"],
mathFractionDigits: 3,
buildPath,
files: [
{
Expand Down

0 comments on commit 27998e8

Please sign in to comment.