Open adrianstainforth-reachplc opened 3 weeks ago
I can see in here - https://github.com/amzn/style-dictionary/blob/17f4cb2f30bd002dfd55d6ef8c5bee4138de8d64/lib/buildFile.js#L59
that any issue is just console.log
Could we add something the extend that allowed you set the config in extend to throw errors or something?
In version 4 you will be able to control the logging more granularly.
https://v4.styledictionary.com/reference/logging/ It allows you to throw errors when warnings occur allowing you to catch them. Also allows toggling the verbosity of the logs or silence warnings and/or success logs altogether
Note that you do need to check out the migration guidelines in order to migrate to the v4 prerelease (as of writing that's 4.0.0-prerelease.35)
So we have an issue with
But it's generating this error:
However there seems to be no way to catch the error and handle it. I like to stop the build but that does not seem possible even wrapping in try...catch.
Is there anyway to handle it or is there anything in the pipeline to handle it?