What Changed
This codemod relocates the format helpers from the StyleDictionary
module/class to the utils
entrypoint, ensuring consistency across the API.
Before
import StyleDictionary from 'style-dictionary';const { fileHeader, formattedVariables } = StyleDictionary.formatHelpers;
After
import StyleDictionary from 'style-dictionary';import { fileHeader, formattedVariables } from 'style-dictionary/utils';
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community