L

flatten-deno.json

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod helps developers migrate their deno.json configuration files to the
new flattened schema format, making them easier to read and write. It automates
the transformation of nested properties to their new top-level structure as
outlined in recent Deno updates.

Before

json

After

json

The codemod handles the following transformations on the config file

BeforeAfter
bench.files.includebench.include
bench.files.excludebench.exclude
fmt.files.includefmt.include
fmt.files.excludefmt.exclude
fmt.options.useTabsfmt.useTabs
fmt.options.lineWidthfmt.lineWidth
fmt.options.indentWidthfmt.indentWidth
fmt.options.singleQuotefmt.singleQuote
fmt.options.proseWrapfmt.proseWrap
fmt.options.semiColonsfmt.semiColons
lint.files.includelint.include
lint.files.excludelint.exclude
test.files.includetest.include
test.files.excludetest.exclude

Ready to contribute?

Build your own codemod and share it with the community.