alleyinteractive / alley-scripts

A collection of scripts and utilities for Alley projects.
https://alley-scripts.alley.dev/
6 stars 1 forks source link

Add resolveJsonModule to tsconfig #662

Closed kevinfodness closed 2 months ago

kevinfodness commented 2 months ago

Description

It's a common pattern to import from JSON files, which is supported by setting resolveJsonModule to true. We should add this to the tsconfig package as a default.

Use Case

When developing Gutenberg blocks it's common to import block.json which fails out of the box with this config.