From 87981260e0a80d872c741350230b738ed1ca237b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 13 Sep 2016 09:20:58 -0700 Subject: [PATCH] fix(api-builder): ignore all symbols starting with _ --- tools/api-builder/angular.io-package/index.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/tools/api-builder/angular.io-package/index.js b/tools/api-builder/angular.io-package/index.js index a0e2874903..3070d822e3 100644 --- a/tools/api-builder/angular.io-package/index.js +++ b/tools/api-builder/angular.io-package/index.js @@ -45,22 +45,7 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe throw new Error('build-api-docs task requires the angular2 repo to be at ' + angular_repo_path); } readTypeScriptModules.basePath = path.resolve(angular_repo_path, 'modules'); - readTypeScriptModules.ignoreExportsMatching = [ - '__esModule', - '__core_private__', - '___core_private__', - '__core_private_testing__', - '___core_private_testing__', - '___core_private_testing_placeholder__', - '__platform_browser_private__', - '___platform_browser_private__', - '__platform_browser_dynamic_private__', - '___platform_browser_dynamic_private__', - '___platform_server_private__', - '__platform_server_private__', - '__router_private__', - '___router_private__', - ]; + readTypeScriptModules.ignoreExportsMatching = [/^_/]; readTypeScriptModules.sourceFiles = [ '@angular/common/index.ts',