Styledictionary/4/Hook Api File Header
Made for
- Styledictionary
- Styledictionary
Last update
Jan 10, 2025
What Changed
This codemod updates registered file headers to be placed inside the hooks.fileHeaders property, instead of fileHeader. Note the shift from the singular to the plural form in this update.
Before
export default {fileHeader: {foo: (defaultMessages = []) => ["Ola, planet!",...defaultMessages,"Hello, World!",],},platforms: {css: {options: {fileHeader: "foo",},},},};
After
export default {platforms: {css: {options: {fileHeader: "foo",},},},hooks: {fileHeaders: {foo: (defaultMessages = []) => ["Ola, planet!",...defaultMessages,"Hello, World!",],},},};
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community