From d968002e983b892824eecd08b1a64b5a30257a0a Mon Sep 17 00:00:00 2001 From: John Simons Date: Fri, 1 Apr 2022 08:56:15 +1000 Subject: [PATCH] We need to include azure-pipelines-tool-lib --- esbuild.mjs | 4 +++- pack.ps1 | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/esbuild.mjs b/esbuild.mjs index 96e5bb4b..221490bc 100644 --- a/esbuild.mjs +++ b/esbuild.mjs @@ -57,7 +57,9 @@ const bundleAsMuchAsWeCan = { name: 'my-special-bundle', setup(build) { build.onResolve( { filter: /^[^.\/]|^\.[^.\/]|^\.\.[^\/]/ } , args => { - if(args.path.startsWith( "azure-pipelines-task-lib")) + console.log(args.path); + console.log(`args.resolveDir=${args.resolveDir}`); + if(args.path.startsWith("azure-pipelines-tool-lib") || args.path.startsWith( "azure-pipelines-task-lib")) return { path: args.path, external: true }; }) }, diff --git a/pack.ps1 b/pack.ps1 index 77d3fbf6..ac68f05e 100644 --- a/pack.ps1 +++ b/pack.ps1 @@ -58,7 +58,7 @@ function SetupTaskDependencies($workingDirectory) { $tempPath = "$basePath/modules"; mkdir "$tempPath/node_modules" - & npm install --prefix $tempPath azure-pipelines-task-lib + & npm install --prefix $tempPath azure-pipelines-task-lib azure-pipelines-tool-lib & npm dedup --prefix $tempPath & go install github.com/tj/node-prune@latest