amzn / style-dictionary

A build system for creating cross-platform styles.
https://styledictionary.com
Apache License 2.0
3.87k stars 543 forks source link

chore: Improve propertySetup error handling #1023

Closed thilohaas closed 5 days ago

thilohaas commented 11 months ago

Issue #, if available:

Description of changes: For bigger projects, its nearly impossible to locate the error, when an empty name is provided.

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

jorenbroekema commented 8 months ago

Could you rebase this to the v4 branch? the main/v3 branch is quite far behind at this point so I'm aiming to only backport really important bug or security fixes to it. This PR definitely seems useful, so I'll happily review and merge this to v4.

You'll also need to update this test: https://github.com/amzn/style-dictionary/blob/v4/__tests__/transform/propertySetup.test.js#L23