From d286319bc49992f5c625db19a4a22b9e19a2e0ce Mon Sep 17 00:00:00 2001 From: Guillaume ROUCHON Date: Thu, 13 May 2021 11:50:45 +0200 Subject: [PATCH] Fix build for public package --- make.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/make.js b/make.js index 84733c0..622f12b 100644 --- a/make.js +++ b/make.js @@ -82,7 +82,8 @@ target.build = function() { var extensionOptions = { version: options.version, stage: options.stage, - taskId: options.taskId + taskId: options.taskId, + public: options.public }; extensionOptions.version = computeVersion(extensionOptions.version, 4); @@ -212,7 +213,7 @@ updateTelemetryScript = function(scriptPath, instrumentationKey, taskVersion) { var script = fs.readFileSync(scriptPath, { encoding: 'utf8' }); if (instrumentationKey) - script = script.replace(/const\s+instrumentationKey\s*=\s*'[^']*'\s*;/, "const instrumentationKey = '" + instrumentationKey + "';"); + script = script.replace(/const\s+instrumentationKey\s*=\s*'[^']*'\s*;/, "const instrumentationKey = '" + instrumentationKey + "';"); if (taskVersion) script = script.replace(/const\s+version\s*=\s*'[^']*'\s*;/, "const version = '" + taskVersion + "';");