From 9252fbed93c2e31db3ce0e2ce52b26ba25e757f1 Mon Sep 17 00:00:00 2001 From: Nils Andresen Date: Sun, 30 Aug 2020 00:08:53 +0200 Subject: [PATCH] (GH-124) Added the return-value to NpmPack(this ICakeContext context, Action configurator) --- src/Cake.Npm/NpmPackAliases.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Cake.Npm/NpmPackAliases.cs b/src/Cake.Npm/NpmPackAliases.cs index 9bde161..5bf4bf1 100644 --- a/src/Cake.Npm/NpmPackAliases.cs +++ b/src/Cake.Npm/NpmPackAliases.cs @@ -76,6 +76,7 @@ public static IEnumerable NpmPack(this ICakeContext context, string so /// /// The context. /// The settings configurator. + /// List of created packages. /// /// /// NpmPack(this ICakeContext context, string so /// [CakeMethodAlias] [CakeAliasCategory("Pack")] - public static void NpmPack(this ICakeContext context, Action configurator) + public static IEnumerable NpmPack(this ICakeContext context, Action configurator) { if (context == null) { @@ -99,7 +100,7 @@ public static void NpmPack(this ICakeContext context, Action co var settings = new NpmPackSettings(); configurator(settings); - context.NpmPack(settings); + return context.NpmPack(settings); } ///