Skip to content

Commit 85f75aa

Browse files
committed
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.
1 parent d6bfe1f commit 85f75aa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/schematics/angular/workspace/files/tsconfig.json.template

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
"moduleResolution": "bundler",
1717
"importHelpers": true,
1818
"target": "ES2022",
19-
"module": "ES2022",
20-
"lib": [
21-
"ES2022",
22-
"dom"
23-
]
19+
"module": "ES2022"
2420
},
2521
"angularCompilerOptions": {
2622
"enableI18nLegacyMessageIdFormat": false<% if (strict) { %>,

0 commit comments

Comments
 (0)