Open TrevorRice opened 3 months ago
As discussed in #1308, the following two files:
// colors-1.json { "colors": { "$type": "color", "black": { "$value": "#000000" } } }
// colors-2.json { "colors": { "$type": "color", "white": { "$value": "#ffffff" } } }
Result in the following console log despite the tokens being generated correctly:
Token collisions detected (1): Collision detected at: colors! Original value: color, New value: color
Token collisions detected (1):
Collision detected at: colors! Original value: color, New value: color
This can be demonstrated in this minimally reproducible example.
Removing "$type": "color" from one or both of the files resolves the collision logging issue.
"$type": "color"
Confirmed bug: https://github.com/amzn/style-dictionary/blob/main/lib/utils/deepExtend.js#L93 here somewhere
As discussed in #1308, the following two files:
Result in the following console log despite the tokens being generated correctly:
This can be demonstrated in this minimally reproducible example.
Removing
"$type": "color"
from one or both of the files resolves the collision logging issue.