Skip to content

Commit 2103e8a

Browse files
authored
feat: add support for angular 12-rc and up (#24)
1 parent 1582d25 commit 2103e8a

File tree

5 files changed

+65
-3
lines changed

5 files changed

+65
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
11.0.x,
5151
11.1.x,
5252
11.2.x
53+
12.0.x
5354
]
5455

5556
steps:
@@ -91,6 +92,7 @@ At the moment this actions supports a limited set of Angular versions listed bel
9192
- 11.0.x
9293
- 11.1.x
9394
- 11.2.x
95+
- 12.0.x
9496

9597
## Contributing
9698

dist/index.js

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/angular-versions.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,5 +529,35 @@ export const versions = new Map<string, PackageJsonVersion>([
529529
typescript: '~4.1.2'
530530
}
531531
}
532+
],
533+
[
534+
'12.0.x',
535+
{
536+
dependencies: {
537+
'@angular/animations': '~12.0.0 || >=12.0.0-rc.0',
538+
'@angular/common': '~12.0.0 || >=12.0.0-rc.0',
539+
'@angular/compiler': '~12.0.0 || >=12.0.0-rc.0',
540+
'@angular/core': '~12.0.0 || >=12.0.0-rc.0',
541+
'@angular/elements': '~12.0.0 || >=12.0.0-rc.0',
542+
'@angular/forms': '~12.0.0 || >=12.0.0-rc.0',
543+
'@angular/platform-browser': '~12.0.0 || >=12.0.0-rc.0',
544+
'@angular/platform-browser-dynamic': '~12.0.0 || >=12.0.0-rc.0',
545+
'@angular/router': '~12.0.0 || >=12.0.0-rc.0',
546+
rxjs: '~6.6.0',
547+
tslib: '^2.0.0',
548+
'zone.js': '~0.11.4'
549+
},
550+
devDependencies: {
551+
'@angular-devkit/build-angular': '~12.0.0 || >=12.0.0-rc.0',
552+
'@angular-devkit/build-ng-packagr': '~0.1002.2',
553+
'@angular-devkit/schematics-cli': '~12.0.0 || >=12.0.0-rc.0',
554+
'@angular/cli': '~12.0.0 || >=12.0.0-rc.1',
555+
'@angular/compiler-cli': '~12.0.0 || >=12.0.0-rc.0',
556+
'@types/node': '^12.11.1',
557+
'ng-packagr': '^12.0.0 || >=^12.0.0-next.8',
558+
'ts-node': '~9.1.1',
559+
typescript: '~4.2.3'
560+
}
561+
}
532562
]
533563
]);

src/types/package-json-version.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ export interface PackageJsonVersion {
2121
'@angular/cli': string;
2222
'@angular/compiler-cli': string;
2323
'@types/node': string;
24-
codelyzer: string;
24+
codelyzer?: string;
2525
'ng-packagr'?: string;
2626
'ts-node': string;
2727
tsickle?: string;
28-
tslint: string;
28+
tslint?: string;
2929
typescript: string;
3030
};
3131
}

0 commit comments

Comments
 (0)