zarro 1.173.12 → 1.173.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -996,7 +996,7 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
996
996
  : (s) => s.toLowerCase() == pkg.toLowerCase();
997
997
  for (const projectPackage of projectPackages) {
998
998
  if (test(projectPackage.id)) {
999
- toUpgrade.push(projectPackage.id);
999
+ toUpgrade.push(projectPackage);
1000
1000
  }
1001
1001
  }
1002
1002
  }
@@ -1009,9 +1009,19 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
1009
1009
  const s = toUpgrade.length === 1 ? "" : "s", message = `searching for ${toUpgrade.length} package${s} to upgrade in ${project}`;
1010
1010
  const upstream = await ctx.exec(message, async () => {
1011
1011
  var _a;
1012
- return await searchForMultiplePackages(toUpgrade, opts.source, (_a = opts.preRelease) !== null && _a !== void 0 ? _a : false);
1012
+ return await searchForMultiplePackages(toUpgrade.map(o => o.id), opts.source, (_a = opts.preRelease) !== null && _a !== void 0 ? _a : false);
1013
1013
  });
1014
1014
  for (const pkg of upstream) {
1015
+ const projectMatch = toUpgrade.find(o => o.id.toLowerCase() === pkg.id.toLowerCase());
1016
+ if (!projectMatch) {
1017
+ throw new Error(`no matching package reference for '${pkg.id}' in '${project}' (HOW?)`);
1018
+ }
1019
+ if (pkg.version.equals(projectMatch.version)) {
1020
+ if (opts.showProgress) {
1021
+ console.log(` ${pkg.id} already at latest version '${pkg.version}' in '${project}'`);
1022
+ }
1023
+ continue;
1024
+ }
1015
1025
  ctx.indent += 2;
1016
1026
  await ctx.exec(`installing '${pkg.id}' at version '${pkg.version}' into '${project}'`, async () => await installPackage({
1017
1027
  projectFile: project,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.173.12",
3
+ "version": "1.173.14",
4
4
  "description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
5
5
  "bin": {
6
6
  "zarro": "index.js"