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