From bcc330d2f92f8a7aa54a6e94da11f2dbb2856ed8 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Fri, 1 Dec 2023 11:11:42 +0000 Subject: [PATCH] fix(@schematics/angular): enable TypeScript `skipLibCheck` in new workspace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit enables `skipLibCheck` in new workspaces which is now recommanded by TypeScript. When enabled, type checking of declaration files is skipped as rather than doing a full check of all `d.ts` files, TypeScript will type check the code you specifically refer to in your app’s source code. See: https://www.typescriptlang.org/tsconfig#skipLibCheck --- .../schematics/angular/workspace/files/tsconfig.json.template | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/schematics/angular/workspace/files/tsconfig.json.template b/packages/schematics/angular/workspace/files/tsconfig.json.template index 251d6bcb1e5a..f5dde42b401c 100644 --- a/packages/schematics/angular/workspace/files/tsconfig.json.template +++ b/packages/schematics/angular/workspace/files/tsconfig.json.template @@ -9,6 +9,7 @@ "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true,<% } %> + "skipLibCheck": true, "esModuleInterop": true, "sourceMap": true, "declaration": false,