Skip to content

Commit 1b4d055

Browse files
committed
Extract tsconfig.src.base.json from tsconfig.base.json
`tsconfig.base.json` includes settings that apply to ALL typescript in the project (including tests and docsgen), while `tsconfig.src.base.json` includes settings that should only apply to the source code of the main library. This fixes the `include` and `exclude` fields intended for library compilation being applied to the `tests` and `docsgen` folders, which made those folders actually just compile the library instead of their actual code.
1 parent 664e2d5 commit 1b4d055

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

tsconfig.base.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,5 @@
1919
"es2015",
2020
"es2015.core"
2121
]
22-
},
23-
"include": [
24-
"src"
25-
],
26-
"exclude": [
27-
"dist",
28-
"node_modules",
29-
"test"
30-
]
31-
}
22+
}
23+
}

tsconfig.cjs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.src.base.json",
33
"compilerOptions": {
44
"module": "commonjs",
55
"outDir": "./dist/cjs",
66
"target": "ES2015"
77
}
8-
}
8+
}

tsconfig.esm.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.src.base.json",
33
"compilerOptions": {
44
"module": "es6",
55
"outDir": "./dist/esm",
66
"target": "es6"
77
}
8-
}
8+
}

tsconfig.src.base.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"include": [
4+
"src"
5+
],
6+
"exclude": [
7+
"dist",
8+
"node_modules",
9+
"test"
10+
]
11+
}

0 commit comments

Comments
 (0)