fix(docs): generate d.ts file only for angular2/angular2.

This commit is contained in:
Rado Kirov 2015-05-29 17:13:01 -07:00
parent 927b4d01a9
commit 0a0b84a07d
2 changed files with 5 additions and 3 deletions

View File

@ -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';

View File

@ -14,11 +14,13 @@ 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);
}
});
docs.push(typeDefDoc);
}
};
};
};