Tokens passed to include
that contain an isSource
property are treated as source files
#1007
Labels
include
that contain an isSource
property are treated as source files
#1007
When passing tokens via
include
that contain the propertyisSource: true
, the included tokens are indistinguishable from actual source tokens, resulting in the inability to distinguish during afilter
.Reproduction
Expected result:
build/figma/figma.tokens.json
contains only theblue-500
token since it's defined intokens/color.js
Actual result: output contains tokens from both
tokens/color.js
andinclude/tokens.json
According to the v3 migration guide:
Since the default
json
formatter includes theisSource
property, I think it would make sense to give it special treatment when it's seen in a file coming frominclude
and manually override it tofalse
.The text was updated successfully, but these errors were encountered: