From af5cc949f15213ee07468a84847e9a6730131913 Mon Sep 17 00:00:00 2001 From: Joren Broekema Date: Thu, 30 May 2024 18:25:46 +0200 Subject: [PATCH] chore: add missing changeset for SD format platform methods (#1227) --- .changeset/tidy-months-brake.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/tidy-months-brake.md diff --git a/.changeset/tidy-months-brake.md b/.changeset/tidy-months-brake.md new file mode 100644 index 000000000..168523e81 --- /dev/null +++ b/.changeset/tidy-months-brake.md @@ -0,0 +1,8 @@ +--- +'style-dictionary': minor +--- + +Create `formatPlatform` and `formatAllPlatforms` methods. +This will return the outputs and destinations from the format hook for your dictionary, without building these outputs and persisting them to the filesystem. +Additionally, formats can now return any data type instead of requiring it to be a `string` and `destination` property in `files` is now optional. +This allows users to create formats intended for only formatting tokens and letting users do stuff with it during runtime rather than writing to files.