diff --git a/packages/schematics/angular/e2e/files/tsconfig.json.template b/packages/schematics/angular/e2e/files/tsconfig.json.template index 64fe9862db78..0286f50c624e 100644 --- a/packages/schematics/angular/e2e/files/tsconfig.json.template +++ b/packages/schematics/angular/e2e/files/tsconfig.json.template @@ -4,7 +4,7 @@ "compilerOptions": { "outDir": "<%= relativePathToWorkspaceRoot %>/out-tsc/e2e", "module": "commonjs", - "target": "es2018", + "target": "es2019", "types": [ "jasmine", "node" diff --git a/packages/schematics/angular/universal/files/root/tsconfig.server.json.template b/packages/schematics/angular/universal/files/root/tsconfig.server.json.template index 4c93c28ff79f..d6fc57740587 100644 --- a/packages/schematics/angular/universal/files/root/tsconfig.server.json.template +++ b/packages/schematics/angular/universal/files/root/tsconfig.server.json.template @@ -3,7 +3,7 @@ "extends": "./<%= tsConfigExtends %>", "compilerOptions": { "outDir": "<%= relativePathToWorkspaceRoot %>/out-tsc/server", - "target": "es2016", + "target": "es2019", "types": [ "node" ] diff --git a/packages/schematics/angular/universal/index_spec.ts b/packages/schematics/angular/universal/index_spec.ts index 2320448bf423..13eaa686075e 100644 --- a/packages/schematics/angular/universal/index_spec.ts +++ b/packages/schematics/angular/universal/index_spec.ts @@ -93,7 +93,7 @@ describe('Universal Schematic', () => { extends: './tsconfig.app.json', compilerOptions: { outDir: './out-tsc/server', - target: 'es2016', + target: 'es2019', types: ['node'], }, files: [ @@ -119,7 +119,7 @@ describe('Universal Schematic', () => { extends: './tsconfig.app.json', compilerOptions: { outDir: '../../out-tsc/server', - target: 'es2016', + target: 'es2019', types: ['node'], }, files: [ diff --git a/packages/schematics/angular/workspace/files/tsconfig.json.template b/packages/schematics/angular/workspace/files/tsconfig.json.template index 6e8c9fa96baf..0e2bbdc74f68 100644 --- a/packages/schematics/angular/workspace/files/tsconfig.json.template +++ b/packages/schematics/angular/workspace/files/tsconfig.json.template @@ -14,7 +14,7 @@ "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, - "target": "es2015", + "target": "es2017", "module": "es2020", "lib": [ "es2018",