Styledictionary/4/Logging

1.0.0Last update Oct 7, 2024
by@manishjha-04

This codemod updates the logging system to be more configurable, as detailed in the Logging docs. You can now customize the verbosity of logs and silence warnings and success logs, in addition to the previous option of setting log: 'error' to change the default behavior to throw warnings as errors.

Before

{
"source": ["tokens.json"],
"log": "error"
}

After

{
"source": [
"tokens.json"
],
"log": {
"warnings": "error",
"verbosity": "default"
}
}

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now