From f6108c54ec954f84557d4d2cc5662237d373760c Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 1 Sep 2015 20:43:03 -0700 Subject: [PATCH] fix(build): add config for outputting the missing test_lib.d.ts file --- docs/typescript-definition-package/index.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/typescript-definition-package/index.js b/docs/typescript-definition-package/index.js index a062a2c191..72e00e01ae 100644 --- a/docs/typescript-definition-package/index.js +++ b/docs/typescript-definition-package/index.js @@ -42,7 +42,8 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage, 'angular2/web_worker/worker.ts', 'angular2/web_worker/ui.ts', 'angular2/router.ts', - 'angular2/http.ts' + 'angular2/http.ts', + 'angular2/test_lib.ts' ]; readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../modules')); @@ -67,6 +68,20 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage, references: ['./angular2.d.ts'], remapTypes: {Type: 'ng.Type', Observable: 'ng.Observable', EventEmitter: 'ng.EventEmitter'}, modules: {'angular2/http': {namespace: 'ngHttp', id: 'angular2/http'}} + }, + { + id: 'angular2/test_lib', + references: ['./angular2.d.ts', '../jasmine/jasmine.d.ts'], + remapTypes: { + Type: 'ng.Type', + Binding: 'ng.Binding', + ViewMetadata: 'ng.ViewMetadata', + Injector: 'ng.Injector', + Predicate: 'ng.Predicate', + ElementRef: 'ng.ElementRef', + + }, + modules: {'angular2/test_lib': {namespace: 'ngTestLib', id: 'angular2/test_lib'}} } ]; })