From 334ccdbff373f6aa229f751850dd3de550695702 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Wed, 28 Aug 2024 18:18:02 -0400 Subject: [PATCH] refactor(@schematics/angular): remove explicit TypeScript lib option for new projects Newly generated projects will now no longer have an explicit `lib` option defined within the TypeScript configuration for the workspace (`tsconfig.json`). This option will default to the `target` option value plus `DOM`. This combination is the same as the explicit value set in a new project. Removing the explicit option value will result in equivalent behavior without the need to duplicate the ES version in two places. --- .../angular/workspace/files/tsconfig.json.template | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/schematics/angular/workspace/files/tsconfig.json.template b/packages/schematics/angular/workspace/files/tsconfig.json.template index 14ba7de7844a..66f33fe73f08 100644 --- a/packages/schematics/angular/workspace/files/tsconfig.json.template +++ b/packages/schematics/angular/workspace/files/tsconfig.json.template @@ -16,11 +16,7 @@ "moduleResolution": "bundler", "importHelpers": true, "target": "ES2022", - "module": "ES2022", - "lib": [ - "ES2022", - "dom" - ] + "module": "ES2022" }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false<% if (strict) { %>,