Skip to content

Commit

Permalink
We need to include azure-pipelines-tool-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
John Simons committed Mar 31, 2022
1 parent 4832e34 commit d968002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
})
},
Expand Down
2 changes: 1 addition & 1 deletion pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d968002

Please sign in to comment.