Skip to content

Commit 979745f

Browse files
committed
Changed lerna special case for logging
1 parent 8011ab9 commit 979745f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

_build/Build.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,14 @@ class Build : NukeBuild
117117
}
118118
if (type == OutputType.Err)
119119
{
120-
if (output.StartsWith("npm WARN", StringComparison.OrdinalIgnoreCase))
120+
var infoWords = new[] {"lerna info", "lerna notice"};
121+
if (infoWords.Any(w => output.StartsWith(w, StringComparison.OrdinalIgnoreCase)))
121122
{
123+
Serilog.Log.Information(output);
124+
}
125+
else if (output.StartsWith("npm WARN", StringComparison.OrdinalIgnoreCase))
126+
{
127+
122128
Serilog.Log.Warning(output);
123129
}
124130
else

0 commit comments

Comments
 (0)