From f365e33643245641810b0d47c2cffc6890f93a69 Mon Sep 17 00:00:00 2001 From: 7PH Date: Sun, 2 Jun 2024 22:11:55 +0200 Subject: [PATCH] Fix bundlers not able to pick package.json at build time --- tool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool.ts b/tool.ts index bd8337d..68cfe26 100644 --- a/tool.ts +++ b/tool.ts @@ -9,10 +9,10 @@ import * as tl from 'azure-pipelines-task-lib/task'; import * as trm from 'azure-pipelines-task-lib/toolrunner'; const cmp = require('semver-compare'); const uuidV4 = require('uuid/v4'); +const pkg = require('./package.json'); declare let rest; -let pkg = require(path.join(__dirname, 'package.json')); let userAgent = 'vsts-task-installer/' + pkg.version; let requestOptions = { // ignoreSslError: true,