Skip to content

Commit f6108c5

Browse files
committed
fix(build): add config for outputting the missing test_lib.d.ts file
1 parent 687e7b5 commit f6108c5

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

  • docs/typescript-definition-package

docs/typescript-definition-package/index.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
4242
'angular2/web_worker/worker.ts',
4343
'angular2/web_worker/ui.ts',
4444
'angular2/router.ts',
45-
'angular2/http.ts'
45+
'angular2/http.ts',
46+
'angular2/test_lib.ts'
4647
];
4748
readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../modules'));
4849

@@ -67,6 +68,20 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
6768
references: ['./angular2.d.ts'],
6869
remapTypes: {Type: 'ng.Type', Observable: 'ng.Observable', EventEmitter: 'ng.EventEmitter'},
6970
modules: {'angular2/http': {namespace: 'ngHttp', id: 'angular2/http'}}
71+
},
72+
{
73+
id: 'angular2/test_lib',
74+
references: ['./angular2.d.ts', '../jasmine/jasmine.d.ts'],
75+
remapTypes: {
76+
Type: 'ng.Type',
77+
Binding: 'ng.Binding',
78+
ViewMetadata: 'ng.ViewMetadata',
79+
Injector: 'ng.Injector',
80+
Predicate: 'ng.Predicate',
81+
ElementRef: 'ng.ElementRef',
82+
83+
},
84+
modules: {'angular2/test_lib': {namespace: 'ngTestLib', id: 'angular2/test_lib'}}
7085
}
7186
];
7287
})

0 commit comments

Comments
 (0)