Simplify gulpfile.ts/tsconfig.json
The `tsconfig.json` inside `gulpfile.ts` needs to match the root `tsconfig.json`, so by making it extend the root `tsconfig.json` and changing just the options which decide which files are included, we can remove a lot of duplication.
This commit is contained in:
@@ -1,22 +1,8 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/tsconfig",
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"extends": "../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"declaration": true,
|
"rootDir": "."
|
||||||
"strict": true,
|
|
||||||
"module": "commonjs",
|
|
||||||
"target": "es2021",
|
|
||||||
"lib": ["ES2021"],
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"sourceMap": true,
|
|
||||||
"rootDir": ".",
|
|
||||||
"strictNullChecks": true,
|
|
||||||
"noFallthroughCasesInSwitch": true,
|
|
||||||
"preserveWatchOutput": true,
|
|
||||||
"newLine": "lf",
|
|
||||||
"noImplicitReturns": true,
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"noUnusedLocals": true,
|
|
||||||
"noUnusedParameters": true
|
|
||||||
},
|
},
|
||||||
"include": ["*.ts"]
|
"include": ["*.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user