zarro 1.179.1 → 1.179.2

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.
@@ -252,10 +252,14 @@
252
252
  pushIfSet(args, opts.configFile, "--configfile");
253
253
  args.push(opts.url);
254
254
  const systemArgs = ["nuget", "add", "source"].concat(args);
255
- await runDotNetWith(systemArgs, { suppressOutput: true });
255
+ let result = await runDotNetWith(systemArgs, { suppressOutput: true });
256
+ if (SystemError.isError(result)) {
257
+ return result;
258
+ }
256
259
  if (opts.enabled === false) {
257
- await disableNugetSource(opts.name);
260
+ result = await disableNugetSource(opts.name);
258
261
  }
262
+ return result;
259
263
  }
260
264
  async function removeNugetSource(source) {
261
265
  if (!source) {
@@ -272,7 +276,7 @@
272
276
  if (!toEnable) {
273
277
  throw new ZarroError(`unable to find source matching: ${JSON.stringify(source)}`);
274
278
  }
275
- await runDotNetWith(["dotnet", "nuget", "enable", "source", toEnable.name], {
279
+ return await runDotNetWith(["dotnet", "nuget", "enable", "source", toEnable.name], {
276
280
  suppressOutput: true
277
281
  });
278
282
  }
@@ -281,7 +285,7 @@
281
285
  if (!toDisable) {
282
286
  throw new ZarroError(`unable to find source matching: ${JSON.stringify(source)}`);
283
287
  }
284
- await runDotNetWith(["dotnet", "nuget", "disable", "source", toDisable.name], {
288
+ return runDotNetWith(["dotnet", "nuget", "disable", "source", toDisable.name], {
285
289
  suppressOutput: true
286
290
  });
287
291
  }
@@ -418,7 +422,7 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
418
422
  }
419
423
  pushMsbuildProperties(args, copy);
420
424
  pushAdditionalArgs(args, copy);
421
- return await runDotNetWith(args, copy);
425
+ return runDotNetWith(args, copy);
422
426
  }
423
427
  catch (e) {
424
428
  throw e;
@@ -885,7 +889,7 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
885
889
  if (opts.suppressOutput === undefined) {
886
890
  opts.suppressOutput = true;
887
891
  }
888
- await runDotNetWith(args, opts);
892
+ return await runDotNetWith(args, opts);
889
893
  }
890
894
  const defaultCreateOptions = {
891
895
  skipTemplateUpdateCheck: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.179.1",
3
+ "version": "1.179.2",
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"