Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(formats): added nested property to json/asset #1000

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jduthon
Copy link

@jduthon jduthon commented Jul 21, 2023

Issue #, if available:

Description of changes:

We are getting a lot of warnings during tokens' generation mentioning name collisions.

I started looking into this and discovered the nested format idea, which works great for the formats where it's set up (and we had to add it to a few of our formats), but then I realized I was still getting errors during asset files generation with the json/format format.
Looking at the code + at its output, it seems like this format is a nested format too, but I am guessing it was missed during the time where nested formats where introduced.

So this PR is just making the json/format officially a nested format, so there won't be anymore wrong warnings for it.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jduthon jduthon requested a review from a team as a code owner October 5, 2023 08:57
@jorenbroekema
Copy link
Collaborator

Hey, sorry for the late response, I think this PR is still valid and hasn't been fixed yet in main branch, could you rebase your PR on the latest branch? https://github.com/amzn/style-dictionary/blob/main/lib/common/formats.js#L1540

And when you're done, running npx changeset will help you writing a patch note for the change (a patch is fine for this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants