Skip to content

Commit

Permalink
chore: enabling NPM logs (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalkia authored Jul 9, 2024
1 parent 619d7fc commit cdb8d5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DCL_PiXYZ/Utils/NPMUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@ public static async Task<string> RunNPMTool(string sceneManifestProjectDirectory
string firstErrorLine = "";
using (process)
{
process.OutputDataReceived += (sender, args) => { };
process.OutputDataReceived += (sender, args) =>
{
FileWriter.WriteToConsole($"NPM OUTPUT: {args.Data}");
};
process.ErrorDataReceived += (sender, args) =>
{
FileWriter.WriteToConsole($"NPM ERROR: {args.Data}");
if (string.IsNullOrEmpty(firstErrorLine))
firstErrorLine = args.Data;
};
Expand Down

0 comments on commit cdb8d5a

Please sign in to comment.