feat(typings): import global-es6.d.ts in core

Currently, importing from 'angular2/angular2', in addition to providing Angular tokens, brings in global-es6.d.ts. Since we are deprecating 'angular2/angular2', we need to do the same in 'angular2/core'.
This commit is contained in:
vsavkin 2015-12-04 13:03:43 -08:00 committed by Victor Savkin
parent d388c0ae62
commit 22e9590981
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ module.exports = function makeNodeTree(projects, destinationPath) {
// because of the duplicate definitions. // because of the duplicate definitions.
// TODO(alexeagle): remove this when typescript releases a fix // TODO(alexeagle): remove this when typescript releases a fix
nodeTree = replace(nodeTree, { nodeTree = replace(nodeTree, {
files: ['angular2/angular2.d.ts'], files: ['angular2/core.d.ts', 'angular2/angular2.d.ts'],
patterns: [{match: /$/, replacement: 'import "./manual_typings/globals-es6.d.ts";\r\n'}] patterns: [{match: /$/, replacement: 'import "./manual_typings/globals-es6.d.ts";\r\n'}]
}); });