diff --git a/aio/tools/transforms/angular-api-package/index.js b/aio/tools/transforms/angular-api-package/index.js index 216b09f29b..1c7c78c9b9 100644 --- a/aio/tools/transforms/angular-api-package/index.js +++ b/aio/tools/transforms/angular-api-package/index.js @@ -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;