Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
Fix build for public package
Browse files Browse the repository at this point in the history
  • Loading branch information
qetza committed May 13, 2021
1 parent 091054d commit d286319
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions make.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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 + "';");
Expand Down

0 comments on commit d286319

Please sign in to comment.