Skip to content

Commit aaed5d5

Browse files
authored
re-add RunNode
1 parent aa04ced commit aaed5d5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

StabilityMatrix.Avalonia/Helpers/WindowsPrerequisiteHelper.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,20 @@ public Task<ProcessResult> GetGitOutput(ProcessArgs args, string? workingDirecto
177177
);
178178
}
179179

180+
private async Task<string> RunNode(
181+
ProcessArgs args,
182+
string? workingDirectory = null,
183+
IReadOnlyDictionary<string, string>? envVars = null
184+
)
185+
{
186+
var result = await ProcessRunner
187+
.GetProcessResultAsync(NodeExePath, args, workingDirectory, envVars)
188+
.ConfigureAwait(false);
189+
190+
result.EnsureSuccessExitCode();
191+
return result.StandardOutput ?? result.StandardError ?? string.Empty;
192+
}
193+
180194
public async Task RunNpm(
181195
ProcessArgs args,
182196
string? workingDirectory = null,

0 commit comments

Comments
 (0)