Skip to content

Commit

Permalink
Move module and moduleResolution to individual config files
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Jul 2, 2024
1 parent 3e73415 commit 2b40519
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
4 changes: 4 additions & 0 deletions cardigan/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"extends": "../config/tsconfig-base",
"compilerOptions": {
"module": "esnext",
"moduleResolution": "bundler",
}
}
5 changes: 4 additions & 1 deletion common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "../config/tsconfig-base",
"include": ["**/*.ts", "**/*.tsx"]
"compilerOptions": {
"module": "esnext",
"moduleResolution": "bundler",
}
}
5 changes: 2 additions & 3 deletions config/tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"isolatedModules": true,
"jsx": "preserve",
"lib": ["esnext"],
"module": "esnext",
"moduleResolution": "bundler",
"noEmit": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
Expand All @@ -18,5 +16,6 @@
"strictNullChecks": true,
"target": "es6",
},
"exclude": ["**/node_modules"]
"exclude": ["/**/node_modules"],
"include": ["/**/*.ts", "/**/*.tsx"],
}
5 changes: 4 additions & 1 deletion content/webapp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"extends": "../../config/tsconfig-base",
"include": ["**/*.ts", "**/*.tsx"],
"compilerOptions": {
"module": "esnext",
"moduleResolution": "node" // Forced by NextJs on build
},
"ts-node": {
"preferTsExts": true
}
Expand Down
5 changes: 4 additions & 1 deletion identity/webapp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"extends": "../../config/tsconfig-base",
"include": ["**/*.ts", "**/*.tsx"],
"compilerOptions": {
"module": "esnext",
"moduleResolution": "node" // Forced by NextJs on build
},
"ts-node": {
"preferTsExts": true
}
Expand Down
4 changes: 4 additions & 0 deletions toggles/webapp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"extends": "../../config/tsconfig-base",
"compilerOptions": {
"module": "esnext",
"moduleResolution": "bundler",
},
// This is for https://github.com/wellcomecollection/ts-aws
"ts-node": {
"skipIgnore": true
Expand Down

0 comments on commit 2b40519

Please sign in to comment.