In versions > 6.0.599 the node_modules grew too large due to the azure-pipelines-tool-lib depending on ^4.1.0 of azure-pipelines-task-lib that ended up installing version 4.9.1 that had more dependencies specifically deasync
Because the versions of these packages isn't defined in the package.json and rather they are just installed in the pack script without a targeted version they end up just using the latest version.
Results
Pin azure-pipelines-task-lib and azure-pipelines-tool-lib in pack.ps1 to last known deployable versions
Before version pin artifact size: 147.3 MB
After version pin artifact size: 33.7 MB
[SC-70520]
Summary
In versions
> 6.0.599
the node_modules grew too large due to theazure-pipelines-tool-lib
depending on^4.1.0
ofazure-pipelines-task-lib
that ended up installing version4.9.1
that had more dependencies specificallydeasync
Because the versions of these packages isn't defined in the package.json and rather they are just installed in the pack script without a targeted version they end up just using the latest version.
Results
pack.ps1
to last known deployable versionsBefore version pin artifact size:
147.3 MB
After version pin artifact size:33.7 MB