Registry
3

styledictionary/4/formatting-options

No description available

35c4n0r10,442 executions

  • Legacy
  • styledictionary
  • 4
  • migration
Connect a repo
npx codemod styledictionary/4/formatting-options

What Changed

This codemod updates file formats to accept options that influence output creation, with the options now nested under the options property. In v3, these options were previously placed directly at the file properties level alongside the destination and format props.

Before

jsx
{
    "source": ["tokens.json"],
    "platforms": {
      "css": {
        "transformGroup": "scss",
        "files": [
          {
            "destination": "map.scss",
            "format": "scss/map-deep",
            "mapName": "tokens"
          }
        ]
      }
    }
  }
  

After

jsx
{
    "source": [
      "tokens.json"
    ],
    "platforms": {
      "css": {
        "transformGroup": "scss",
        "files": [
          {
            "destination": "map.scss",
            "format": "scss/map-deep",
            "options": {
              "mapName": "tokens"
            }
          }
        ]
      }
    }
  }

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.