amzn / style-dictionary

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

fix: platform preprocessors retrieve platform config #1370

Closed tkgroot closed 1 month ago

tkgroot commented 1 month ago

Issue #, if available: closes https://github.com/amzn/style-dictionary/issues/1365

Description of changes:

As documented applying preprocessors in config, it shows that preprocessors can be defined for platforms specifically. However if placed as a platform specific preprocessor it does not include the configuration of the platform, as it does with "global" preprocessors.

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

aws-amplify-us-west-1[bot] commented 1 month ago

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-1370.d16eby4ekpss5y.amplifyapp.com

jorenbroekema commented 1 month ago

Added test, adjusted types and docs accordingly. Thanks for the PR!