figma-plugin icon indicating copy to clipboard operation
figma-plugin copied to clipboard

[token-transformer] Tokens not generating when sets passed with a folder src input

Open RockAtRockwell opened this issue 2 years ago • 1 comments

Describe the bug Currently, we have our tokens set up to sync to a folder in GitHub, giving us the multi-file setup. When we try to run the tokens transformer and pass it the specific sets we want it to transform, it generates and empty .json file.

To Reproduce Steps to reproduce the behavior:

  1. Setup Tokens studio with at least 2 sets of tokens
  2. Sync those tokens to a GitHub repo with a folder endpoint (/tokens)
  3. Run the transformer in the repo locally token-transformer ./tokens ./.tmp/tokens.json Set1,Optional2 --expandTypography --expandShadow

Note: If I run the above command without passing in sets, it will generate a .json file properly, just with all of the tokens, which is not what I'm looking for.

Expected behavior A json file containing the tokens from the selected set(s)

RockAtRockwell avatar Aug 07 '23 17:08 RockAtRockwell

Just want to +1 this, we are also seeing the same behavior.

brianokeefe avatar Oct 19 '23 18:10 brianokeefe

@jorenbroekema is this still a known issue?

  • if so, remove the archive label and add additional labels as needed
  • if not, please close.

SamIam4Hyma avatar Mar 21 '24 00:03 SamIam4Hyma

token-transformer deprecated in favor of using sd-transforms, dont think it's a problem there, you can even pass a function to sd-transforms expand options to conditionally expand e.g. by token.filePath to only expand tokens from certain sets

jorenbroekema avatar Mar 26 '24 17:03 jorenbroekema