Skip to content

Commit d968002

Browse files
author
John Simons
committed
We need to include azure-pipelines-tool-lib
1 parent 4832e34 commit d968002

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

esbuild.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ const bundleAsMuchAsWeCan = {
5757
name: 'my-special-bundle',
5858
setup(build) {
5959
build.onResolve( { filter: /^[^.\/]|^\.[^.\/]|^\.\.[^\/]/ } , args => {
60-
if(args.path.startsWith( "azure-pipelines-task-lib"))
60+
console.log(args.path);
61+
console.log(`args.resolveDir=${args.resolveDir}`);
62+
if(args.path.startsWith("azure-pipelines-tool-lib") || args.path.startsWith( "azure-pipelines-task-lib"))
6163
return { path: args.path, external: true };
6264
})
6365
},

pack.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function SetupTaskDependencies($workingDirectory) {
5858
$tempPath = "$basePath/modules";
5959

6060
mkdir "$tempPath/node_modules"
61-
& npm install --prefix $tempPath azure-pipelines-task-lib
61+
& npm install --prefix $tempPath azure-pipelines-task-lib azure-pipelines-tool-lib
6262
& npm dedup --prefix $tempPath
6363
& go install github.com/tj/node-prune@latest
6464

0 commit comments

Comments
 (0)