From aad30688153a6b036e3a8f50f37caefeb5a13718 Mon Sep 17 00:00:00 2001 From: Michel Kaporin Date: Wed, 5 Apr 2017 16:22:22 +0200 Subject: [PATCH] Exported necessary members back. --- build/lib/i18n.js | 1 + build/lib/i18n.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build/lib/i18n.js b/build/lib/i18n.js index f754fbdf6a3..f7798ac0a12 100644 --- a/build/lib/i18n.js +++ b/build/lib/i18n.js @@ -580,6 +580,7 @@ function getResource(sourceFile) { } throw new Error("Could not identify the XLF bundle for " + sourceFile); } +exports.getResource = getResource; function importBundleJson(file, json, stream) { var bundleXlfs = Object.create(null); for (var source in json.keys) { diff --git a/build/lib/i18n.ts b/build/lib/i18n.ts index 88d7fadf4f2..37424500101 100644 --- a/build/lib/i18n.ts +++ b/build/lib/i18n.ts @@ -31,7 +31,7 @@ interface Item { comment: string; } -interface Resource { +export interface Resource { name: string; project: string; } @@ -621,7 +621,7 @@ const editorWorkbenchResources: Resource[] = [ { name: 'setup', project: workbenchProject } ]; -function getResource(sourceFile: string): Resource { +export function getResource(sourceFile: string): Resource { let resource: string; if (sourceFile.startsWith('vs/platform')) { -- GitLab