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 = [
|
readTypeScriptModules.sourceFiles = [
|
||||||
'*/*.@(js|es6|ts])',
|
'*/*.@(js|es6|ts)',
|
||||||
'*/src/**/*.@(js|es6|ts)'
|
'*/src/**/*.@(js|es6|ts)'
|
||||||
];
|
];
|
||||||
readTypeScriptModules.basePath = 'modules';
|
readTypeScriptModules.basePath = 'modules';
|
||||||
|
|
|
@ -14,11 +14,13 @@ module.exports = function createTypeDefinitionFile() {
|
||||||
modules: []
|
modules: []
|
||||||
};
|
};
|
||||||
_.forEach(docs, function(doc) {
|
_.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);
|
typeDefDoc.modules.push(doc);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
docs.push(typeDefDoc);
|
docs.push(typeDefDoc);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue