style-dictionary icon indicating copy to clipboard operation
style-dictionary copied to clipboard

Nested formats do not apply transforms?

Open dj-kmuldoon opened this issue 2 years ago • 2 comments

I created a custom transform to clean up names of tokens on output. Works well, but I noticed these transforms do not take effect when using format: 'json/nested' for files. Is this desired behavior for nested? Thanks!

dj-kmuldoon avatar Sep 02 '22 11:09 dj-kmuldoon

Do you have two name transforms then? The ordering of it would matter. Plus transitive: true. Alternate suggestion is to combine and have one custom name transform or a custom json/nested format.

nahiyankhan avatar Sep 07 '22 16:09 nahiyankhan

Yes! I fixed! Thanks for the assist!

caoimghgin avatar Sep 21 '22 10:09 caoimghgin

Tell ya what. Delete this and I'll give it another try. Made significant discoveries on how Style-Dictionary works and don't want to add noise here.

On Wed, Sep 7, 2022 at 12:04 PM Nahiyan Khan @.***> wrote:

Do you have two name transforms then? The ordering of it would matter. Alternate suggestion is to combine and have one custom name transform or a custom json/nested format.

— Reply to this email directly, view it on GitHub https://github.com/amzn/style-dictionary/issues/862#issuecomment-1239591530, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYRTTTEJAY2ZALXHWCZYMUTV5C4HVANCNFSM6AAAAAAQDGOOW4 . You are receiving this because you authored the thread.Message ID: @.***>

dj-kmuldoon avatar Oct 11 '22 09:10 dj-kmuldoon