diff --git a/.changeset/tiny-carrots-cheat.md b/.changeset/tiny-carrots-cheat.md new file mode 100644 index 00000000..f5928dec --- /dev/null +++ b/.changeset/tiny-carrots-cheat.md @@ -0,0 +1,5 @@ +--- +"@alleyinteractive/tsconfig": patch +--- + +Add resolveJsonModule to allow importing JSON files diff --git a/packages/tsconfig/README.md b/packages/tsconfig/README.md index be467330..348378fa 100644 --- a/packages/tsconfig/README.md +++ b/packages/tsconfig/README.md @@ -46,6 +46,7 @@ including: * `outDir`: `build` - The output directory for the transpiled files. * `preserveWatchOutput`: `true` - Ensures that the output is cleared before each build. +* `resolveJsonModule`: `true` - Allows importing JSON files as modules. * `skipLibCheck`: `true` - Skips type checking of `.d.ts` files. * `sourceMap`: `true` - Generates source maps for the transpiled files. * `strict`: `true` - Enables all strict type checking options. diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json index 426edc81..e0951ed0 100644 --- a/packages/tsconfig/base.json +++ b/packages/tsconfig/base.json @@ -18,6 +18,7 @@ "noUnusedParameters": false, "outDir": "build", "preserveWatchOutput": true, + "resolveJsonModule": true, "skipLibCheck": true, "sourceMap": true, "strict": true,