fix(docs): generate d.ts file only for angular2/angular2.
This commit is contained in:
parent
927b4d01a9
commit
0a0b84a07d
|
@ -62,7 +62,7 @@ module.exports = new Package('angular', [jsdocPackage, nunjucksPackage, linksPac
|
|||
];
|
||||
|
||||
readTypeScriptModules.sourceFiles = [
|
||||
'*/*.@(js|es6|ts])',
|
||||
'*/*.@(js|es6|ts)',
|
||||
'*/src/**/*.@(js|es6|ts)'
|
||||
];
|
||||
readTypeScriptModules.basePath = 'modules';
|
||||
|
|
|
@ -14,7 +14,9 @@ module.exports = function createTypeDefinitionFile() {
|
|||
modules: []
|
||||
};
|
||||
_.forEach(docs, function(doc) {
|
||||
if ( doc.docType === 'module' ) {
|
||||
// The shape of the public API is determined by what is reexported into
|
||||
// angular2/angular2.
|
||||
if (doc.id === 'angular2/angular2') {
|
||||
typeDefDoc.modules.push(doc);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue