build(bazel): update to rules_typescript 0.16.1 (#25490)

PR Close #25490
This commit is contained in:
Alex Eagle
2018-08-14 14:07:22 -07:00
committed by Matias Niemelä
parent 3d41739021
commit 22e7f7e99f
5 changed files with 34 additions and 75 deletions

View File

@ -23,9 +23,6 @@ function main(args) {
const data = JSON.parse(fs.readFileSync(input, {encoding: 'utf-8'}));
data['compilerOptions']['target'] = 'es5';
data['bazelOptions']['es5Mode'] = true;
// Enable tsickle for decorator downleveling only
data['bazelOptions']['tsickle'] = true;
data['bazelOptions']['tsickleExternsPath'] = '';
data['compilerOptions']['outDir'] = path.join(data['compilerOptions']['outDir'], newRoot);
if (data['angularCompilerOptions']) {
// Don't enable tsickle's closure conversions

View File

@ -126,8 +126,8 @@ describe('@angular/core ng_package', () => {
expect(shx.cat('fesm5/core.js')).not.toContain('@fileoverview added by tsickle');
});
it('should have annotations rather than decorators',
() => { expect(shx.cat('fesm5/core.js')).not.toContain('__decorate'); });
it('should have decorators',
() => { expect(shx.cat('fesm5/core.js')).toContain('__decorate'); });
it('should load tslib from external bundle', () => {
expect(shx.cat('fesm5/core.js')).not.toContain('function __extends');

View File

@ -182,6 +182,9 @@
{
"name": "APP_BOOTSTRAP_LISTENER"
},
{
"name": "APP_INITIALIZER"
},
{
"name": "APP_ROOT"
},
@ -1910,6 +1913,9 @@
{
"name": "__assign"
},
{
"name": "__decorate"
},
{
"name": "__extends"
},
@ -1946,6 +1952,12 @@
{
"name": "__extends$u"
},
{
"name": "__metadata"
},
{
"name": "__param"
},
{
"name": "__read"
},