Skip to content

Commit fa55e3c

Browse files
authored
Merge pull request #663 from alleyinteractive/feature/issue-662/add-resolveJsonModule-tsconfig
Issue-662: Add resolveJsonModule to tsconfig
2 parents 8c9655e + 8eafd0e commit fa55e3c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.changeset/tiny-carrots-cheat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@alleyinteractive/tsconfig": patch
3+
---
4+
5+
Add resolveJsonModule to allow importing JSON files

packages/tsconfig/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ including:
4646
* `outDir`: `build` - The output directory for the transpiled files.
4747
* `preserveWatchOutput`: `true` - Ensures that the output is cleared before
4848
each build.
49+
* `resolveJsonModule`: `true` - Allows importing JSON files as modules.
4950
* `skipLibCheck`: `true` - Skips type checking of `.d.ts` files.
5051
* `sourceMap`: `true` - Generates source maps for the transpiled files.
5152
* `strict`: `true` - Enables all strict type checking options.

packages/tsconfig/base.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"noUnusedParameters": false,
1919
"outDir": "build",
2020
"preserveWatchOutput": true,
21+
"resolveJsonModule": true,
2122
"skipLibCheck": true,
2223
"sourceMap": true,
2324
"strict": true,

0 commit comments

Comments
 (0)