build: update to TypeScript 3.4 (#29372)

PR Close #29372
This commit is contained in:
Filipe Silva
2019-03-18 14:44:56 +00:00
committed by Igor Minar
parent 138ca5a246
commit ef85336719
17 changed files with 34 additions and 29 deletions

View File

@ -91,7 +91,7 @@ export abstract class Renderer {
const renderedFiles: FileInfo[] = [];
// Transform the source files.
this.bundle.src.program.getSourceFiles().map(sourceFile => {
this.bundle.src.program.getSourceFiles().forEach(sourceFile => {
const compiledFile = decorationAnalyses.get(sourceFile);
const switchMarkerAnalysis = switchMarkerAnalyses.get(sourceFile);

View File

@ -24,7 +24,7 @@
},
"peerDependencies": {
"@angular/compiler": "0.0.0-PLACEHOLDER",
"typescript": ">=3.3.3333 <3.4"
"typescript": ">=3.4 <3.5"
},
"engines": {
"node": ">=8.0"
@ -45,4 +45,4 @@
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
}
}
}

View File

@ -72,14 +72,14 @@ const defaultEmitCallback: TsEmitCallback =
* Minimum supported TypeScript version
* ∀ supported typescript version v, v >= MIN_TS_VERSION
*/
const MIN_TS_VERSION = '3.3.3333';
const MIN_TS_VERSION = '3.4.0';
/**
* Supremum of supported TypeScript versions
* ∀ supported typescript version v, v < MAX_TS_VERSION
* MAX_TS_VERSION is not considered as a supported TypeScript version
*/
const MAX_TS_VERSION = '3.4.0';
const MAX_TS_VERSION = '3.5.0';
class AngularCompilerProgram implements Program {
private rootNames: string[];