File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
angular/templates/generators/ng-app Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export class NgAppTemplate implements ComponentTemplate {
42
42
gitKeepFile ( ) ,
43
43
] ;
44
44
45
- if ( this . angularVersion >= 15 ) {
45
+ if ( this . angularVersion < 15 ) {
46
46
files . push (
47
47
// starting from Angular 15, the `polyfills` option accept an array of module specifiers.
48
48
// https://github.com/angular/angular-cli/commit/597bfea1b29cc7b25d1f466eb313cbeeb6dffc98
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ export const tsconfigFile = (angularVersion: number): ComponentFile => {
37
37
"strictInputAccessModifiers": true
38
38
},
39
39
"files": [
40
- "./src/main.ts",
41
- "./src/polyfills.ts"
40
+ "./src/main.ts"${ angularVersion >= 15 ? `` : ` ,
41
+ "./src/polyfills.ts"` }
42
42
],
43
43
"include": [
44
44
"./src/**/*.d.ts"
You can’t perform that action at this time.
0 commit comments