From eeae4397265a7e9e35dcd484f488f9a3674387ab Mon Sep 17 00:00:00 2001 From: Philipp Busse Date: Tue, 9 Jun 2020 02:30:53 +0200 Subject: [PATCH] chore(tsc): enable incremental build and strict options --- .gitignore | 1 + tsconfig.json | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 936e0bf5..4f78fd5f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +tsconfig.build.tsbuildinfo .eslintcache dist # Logs diff --git a/tsconfig.json b/tsconfig.json index e85e343a..4770b9f4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,3 @@ -// https://github.com/microsoft/TypeScript-Node-Starter - { "compilerOptions": { "rootDir": "src", @@ -8,6 +6,7 @@ "esModuleInterop": true, "experimentalDecorators": true, "forceConsistentCasingInFileNames": true, + "incremental": true, "module": "CommonJS", "moduleResolution": "Node", "noImplicitAny": true, @@ -15,7 +14,10 @@ "outDir": "./dist", "sourceMap": true, "strict": true, - "target": "ES2018" + "strictNullChecks": true, + "strictFunctionTypes": true, + "strictPropertyInitialization": true, + "target": "ES2019" }, "include": ["src/**/*", "__tests__/**/*", "example/**/*", "__mocks__/**/*"] }