Skip to content

Commit f2e924b

Browse files
committed
Factor out a base tsconfig
1 parent 37b258e commit f2e924b

File tree

7 files changed

+47
-96
lines changed

7 files changed

+47
-96
lines changed

packages/lit-dev-content/samples/tsconfig.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
{
2+
"extends": "../../../tsconfig.base.json",
23
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "esnext",
5-
"lib": ["es2020", "dom"],
6-
"strict": true,
7-
"moduleResolution": "node",
8-
"esModuleInterop": true,
9-
"experimentalDecorators": true,
10-
"skipLibCheck": true,
11-
"forceConsistentCasingInFileNames": true,
12-
"types": [],
134
"rootDir": ".",
14-
"outDir": "js"
5+
"outDir": "js",
6+
"types": [],
7+
"declaration": false,
8+
"declarationMap": false,
9+
"sourceMap": false,
10+
"noUnusedLocals": false,
11+
"noUnusedParameters": false
1512
},
1613
"include": ["./**/*.ts"],
1714
"exclude": [

packages/lit-dev-content/tsconfig.json

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
4+
"rootDir": "src",
5+
"outDir": "lib",
36
"incremental": true,
4-
"tsBuildInfoFile": "./lib/tsconfig.tsbuildinfo",
5-
"target": "es2020",
6-
"module": "esnext",
7-
"declaration": true,
8-
"declarationMap": true,
9-
"sourceMap": true,
10-
"outDir": "./lib",
11-
"rootDir": "./src",
127
"composite": true,
13-
"strict": true,
14-
"noUnusedLocals": true,
15-
"noUnusedParameters": true,
16-
"noImplicitReturns": true,
17-
"noFallthroughCasesInSwitch": true,
18-
"moduleResolution": "node",
19-
"esModuleInterop": true,
20-
"experimentalDecorators": true,
21-
"forceConsistentCasingInFileNames": true,
22-
"importHelpers": true,
23-
8+
"tsBuildInfoFile": "lib/.tsbuildinfo",
249
"skipLibCheck": true
2510
},
2611
"include": ["src/**/*.ts"],

packages/lit-dev-server/tsconfig.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,11 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
4+
"rootDir": "src",
5+
"outDir": "lib",
36
"incremental": true,
4-
"tsBuildInfoFile": "./lib/.tsbuildinfo",
5-
"target": "es2020",
6-
"module": "esnext",
7-
"declaration": true,
8-
"declarationMap": true,
9-
"sourceMap": true,
10-
"outDir": "./lib",
11-
"rootDir": "./src",
127
"composite": true,
13-
"strict": true,
14-
"noUnusedLocals": true,
15-
"noUnusedParameters": true,
16-
"noImplicitReturns": true,
17-
"noFallthroughCasesInSwitch": true,
18-
"moduleResolution": "node",
19-
"esModuleInterop": true,
20-
"experimentalDecorators": true,
21-
"forceConsistentCasingInFileNames": true
8+
"tsBuildInfoFile": "lib/.tsbuildinfo"
229
},
2310
"include": ["src/**/*.ts"],
2411
"exclude": []

packages/lit-dev-tests/tsconfig.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"target": "es2020",
4-
"module": "esnext",
5-
"moduleResolution": "node",
6-
"declaration": true,
7-
"declarationMap": true,
8-
"sourceMap": true,
9-
"outDir": "./lib",
10-
"rootDir": "./src",
11-
"strict": true,
12-
"noUnusedLocals": true,
13-
"noUnusedParameters": true,
14-
"noImplicitReturns": true,
15-
"noFallthroughCasesInSwitch": true,
16-
"esModuleInterop": true,
17-
"experimentalDecorators": true,
18-
"forceConsistentCasingInFileNames": true
4+
"rootDir": "src",
5+
"outDir": "lib"
196
},
207
"include": ["src/**/*.ts"],
218
"exclude": []

packages/lit-dev-tools-cjs/tsconfig.json

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"incremental": true,
4-
"tsBuildInfoFile": "./tsconfig.tsbuildinfo",
5-
"target": "es2020",
4+
"rootDir": "src",
5+
"outDir": "lib",
66
"module": "commonjs",
7-
"declaration": true,
8-
"declarationMap": true,
9-
"sourceMap": true,
10-
"outDir": "./lib",
11-
"rootDir": "./src",
7+
"incremental": true,
128
"composite": true,
13-
"strict": true,
14-
"noUnusedLocals": true,
15-
"noUnusedParameters": true,
16-
"noImplicitReturns": true,
17-
"noFallthroughCasesInSwitch": true,
18-
"moduleResolution": "node",
19-
"esModuleInterop": true,
20-
"experimentalDecorators": true,
21-
"forceConsistentCasingInFileNames": true
9+
"tsBuildInfoFile": "lib/.tsbuildinfo"
2210
},
2311
"include": ["src/**/*.ts"],
2412
"exclude": []

packages/lit-dev-tools-esm/tsconfig.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"target": "es2020",
4-
"module": "esnext",
5-
"moduleResolution": "node",
6-
"declaration": true,
7-
"declarationMap": true,
8-
"sourceMap": true,
9-
"outDir": "./lib",
10-
"rootDir": "./src",
11-
"strict": true,
12-
"noUnusedLocals": true,
13-
"noUnusedParameters": true,
14-
"noImplicitReturns": true,
15-
"noFallthroughCasesInSwitch": true,
16-
"esModuleInterop": true,
17-
"experimentalDecorators": true,
18-
"forceConsistentCasingInFileNames": true
4+
"rootDir": "src",
5+
"outDir": "lib"
196
},
207
"include": ["src/**/*.ts"],
218
"exclude": []

tsconfig.base.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2020",
4+
"module": "esnext",
5+
"moduleResolution": "node",
6+
"lib": ["esnext", "dom", "dom.iterable"],
7+
"declaration": true,
8+
"declarationMap": true,
9+
"sourceMap": true,
10+
"strict": true,
11+
"noUnusedLocals": true,
12+
"noUnusedParameters": true,
13+
"noImplicitReturns": true,
14+
"noFallthroughCasesInSwitch": true,
15+
"esModuleInterop": true,
16+
"experimentalDecorators": true,
17+
"forceConsistentCasingInFileNames": true,
18+
"importHelpers": true
19+
}
20+
}

0 commit comments

Comments
 (0)