It used to work for a while, but recently when we upgraded @mozaic-ds/tokens from 1.68.0 to 1.72.0, and our custom tokens where not taken into consideration anymore.
After some investigations, it seems that now the localTokensSrcPath is relative to node_modules/@mozaic-ds/tokens/ and not the root of the project as it used to be.
I updated our Mozaic configuration with the following and it works well:
I have read the contributing guidelines
Does this PR introduce a breaking change?
Describe the changes
We use Mozaic on the Front-End Enablers portal and we customized tokens to have our own primary colors. Here is our mozaic.config.js :
It used to work for a while, but recently when we upgraded
@mozaic-ds/tokens
from1.68.0
to1.72.0
, and our custom tokens where not taken into consideration anymore. After some investigations, it seems that now thelocalTokensSrcPath
is relative tonode_modules/@mozaic-ds/tokens/
and not the root of the project as it used to be. I updated our Mozaic configuration with the following and it works well:However I think it's a bug. In version
1.68.0
the custom source path was calculated this way:and now it's like this:
The method
getPath
shouldn't be called when computing the custom source path.