build(aio): ensure dgeni can load all angular Typescript modules (#18927)

PR Close #18927
This commit is contained in:
Peter Bacon Darwin 2017-08-21 19:32:22 +01:00 committed by Miško Hevery
parent 5d70c6e34f
commit dc7de0896c
1 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,11 @@ module.exports = new Package('angular-api', [basePackage, typeScriptPackage])
.processor(require('./processors/simplifyMemberAnchors'))
// Where do we get the source files?
.config(function(readTypeScriptModules, readFilesProcessor, collectExamples) {
.config(function(readTypeScriptModules, readFilesProcessor, collectExamples, tsParser) {
// Tell TypeScript how to load modules that start with with `@angular`
tsParser.options.paths = { '@angular/*': [API_SOURCE_PATH + '/*'] };
tsParser.options.baseUrl = '.';
// API files are typescript
readTypeScriptModules.basePath = API_SOURCE_PATH;