alleyinteractive / alley-scripts

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

Issue-662: Add resolveJsonModule to tsconfig #663

Closed kevinfodness closed 2 months ago

kevinfodness commented 2 months ago

Summary

Fixes #662

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.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 8eafd0ed893a6390bfd067599144f14c76c2c8c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------------------- | ----- | | @alleyinteractive/tsconfig | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR