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

@ -14,7 +14,7 @@ import {
import {IS_DART, stringify} from '../src/facade/lang';
import {CompileMetadataResolver} from '../src/metadata_resolver';
import {LifecycleHooks, LIFECYCLE_HOOKS_VALUES} from '@angular/core/src/metadata/lifecycle_hooks';
import {LIFECYCLE_HOOKS_VALUES} from '@angular/core/src/metadata/lifecycle_hooks';
import {
Component,
Directive,

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",