Skip to content

Commit

Permalink
Merge pull request #125 from nils-a/feature/GH-124
Browse files Browse the repository at this point in the history
(GH-124) added the return-value to NpmPack
  • Loading branch information
pascalberger authored Aug 30, 2020
2 parents 35d7d10 + 9252fbe commit 7e71d48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Cake.Npm/NpmPackAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public static IEnumerable<FilePath> NpmPack(this ICakeContext context, string so
/// </summary>
/// <param name="context">The context.</param>
/// <param name="configurator">The settings configurator.</param>
/// <returns>List of created packages.</returns>
/// <example>
/// <code>
/// <![CDATA[
Expand All @@ -85,7 +86,7 @@ public static IEnumerable<FilePath> NpmPack(this ICakeContext context, string so
/// </example>
[CakeMethodAlias]
[CakeAliasCategory("Pack")]
public static void NpmPack(this ICakeContext context, Action<NpmPackSettings> configurator)
public static IEnumerable<FilePath> NpmPack(this ICakeContext context, Action<NpmPackSettings> configurator)
{
if (context == null)
{
Expand All @@ -99,7 +100,7 @@ public static void NpmPack(this ICakeContext context, Action<NpmPackSettings> co

var settings = new NpmPackSettings();
configurator(settings);
context.NpmPack(settings);
return context.NpmPack(settings);
}

/// <summary>
Expand Down

0 comments on commit 7e71d48

Please sign in to comment.