Skip to content

Commit 9252fbe

Browse files
nils-apascalberger
authored andcommitted
(GH-124) Added the return-value to NpmPack(this ICakeContext context, Action<NpmPackSettings> configurator)
1 parent 35d7d10 commit 9252fbe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Cake.Npm/NpmPackAliases.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public static IEnumerable<FilePath> NpmPack(this ICakeContext context, string so
7676
/// </summary>
7777
/// <param name="context">The context.</param>
7878
/// <param name="configurator">The settings configurator.</param>
79+
/// <returns>List of created packages.</returns>
7980
/// <example>
8081
/// <code>
8182
/// <![CDATA[
@@ -85,7 +86,7 @@ public static IEnumerable<FilePath> NpmPack(this ICakeContext context, string so
8586
/// </example>
8687
[CakeMethodAlias]
8788
[CakeAliasCategory("Pack")]
88-
public static void NpmPack(this ICakeContext context, Action<NpmPackSettings> configurator)
89+
public static IEnumerable<FilePath> NpmPack(this ICakeContext context, Action<NpmPackSettings> configurator)
8990
{
9091
if (context == null)
9192
{
@@ -99,7 +100,7 @@ public static void NpmPack(this ICakeContext context, Action<NpmPackSettings> co
99100

100101
var settings = new NpmPackSettings();
101102
configurator(settings);
102-
context.NpmPack(settings);
103+
return context.NpmPack(settings);
103104
}
104105

105106
/// <summary>

0 commit comments

Comments
 (0)