build: turn on tsc's stripInternal when producint public d.ts file

I also made some changes to fix imports and remove some stuff that caused
breakage once stripInternals was turned on.
This commit is contained in:
Igor Minar
2016-05-19 15:29:50 -07:00
parent 7bfe8aa553
commit 0035575c82
24 changed files with 33 additions and 27 deletions

View File

@ -10,5 +10,4 @@ export {NgTemplateOutlet} from './directives/ng_template_outlet';
export {NgStyle} from './directives/ng_style';
export {NgSwitch, NgSwitchWhen, NgSwitchDefault} from './directives/ng_switch';
export {NgPlural, NgPluralCase, NgLocalization} from './directives/ng_plural';
export * from './directives/observable_list_diff';
export {CORE_DIRECTIVES} from './directives/core_directives';

View File

@ -1,11 +0,0 @@
// TS does not have Observables
// I need to be here to make TypeScript think this is a module.
import {} from '../../src/facade/lang';
/**
* This module exists in Dart, but not in Typescript. This exported symbol
* is only here to help Typescript think this is a module.
* @internal
*/
export var workaround_empty_observable_list_diff: any;

View File

@ -1,5 +1,5 @@
import {Injectable, Inject} from '@angular/core';
import {EventEmitter, ObservableWrapper} from '../../src/facade/async';
import {Injectable, EventEmitter} from '@angular/core';
import {ObservableWrapper} from '../../src/facade/async';
import {LocationStrategy} from './location_strategy';

View File

@ -5,6 +5,7 @@
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"stripInternal": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "es2015",

View File

@ -5,6 +5,7 @@
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"stripInternal": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",