zarro 1.173.10 → 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
  }
@@ -1006,12 +1006,23 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
1006
1006
  }
1007
1007
  continue;
1008
1008
  }
1009
- const message = `searching for ${toUpgrade.length} packages to upgrade in ${project}`;
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
+ }
1025
+ ctx.indent += 2;
1015
1026
  await ctx.exec(`installing '${pkg.id}' at version '${pkg.version}' into '${project}'`, async () => await installPackage({
1016
1027
  projectFile: project,
1017
1028
  id: pkg.id,
@@ -1019,6 +1030,7 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
1019
1030
  source: opts.source,
1020
1031
  noRestore: opts.noRestore
1021
1032
  }));
1033
+ ctx.indent -= 2;
1022
1034
  }
1023
1035
  }
1024
1036
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.173.10",
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
- "zarro": "./index.js"
6
+ "zarro": "index.js"
7
7
  },
8
8
  "homepage": "https://github.com/fluffynuts/zarro",
9
9
  "main": "index.js",