From 954a3827b707dff7f567692263e54b8479f9495b Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Fri, 13 Nov 2015 14:08:54 +0000 Subject: [PATCH] api-builder: add simplified name to module docs --- .../typescript-package/processors/readTypeScriptModules.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/api-builder/typescript-package/processors/readTypeScriptModules.js b/tools/api-builder/typescript-package/processors/readTypeScriptModules.js index 2445546a28..7038825b3a 100644 --- a/tools/api-builder/typescript-package/processors/readTypeScriptModules.js +++ b/tools/api-builder/typescript-package/processors/readTypeScriptModules.js @@ -142,10 +142,12 @@ module.exports = function readTypeScriptModules(tsParser, modules, getFileInfo, function createModuleDoc(moduleSymbol, basePath) { var id = moduleSymbol.name.replace(/^"|"$/g, ''); + var name = id.split('/').pop(); var moduleDoc = { docType: 'module', + name: name, id: id, - aliases: [id], + aliases: [id, name], moduleTree: moduleSymbol, content: getContent(moduleSymbol), exports: [],