Skip to content

Commit

Permalink
update SimpleExec from 6.2.0 to 10.0.0-beta.1 (#2138)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamralph authored Mar 19, 2022
1 parent e55e886 commit 85875f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions build/build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ private static void Main(string[] args)
File.WriteAllText("src/Marten.Testing/connection.txt", GetEnvironmentVariable("connection")));

Target("install", () =>
RunNpm("install"));
Run("npm", "install"));

Target("mocha", DependsOn("install"), () =>
RunNpm("run test"));
Run("npm", "run test"));

Target("compile", DependsOn("clean"), () =>
{
Expand Down Expand Up @@ -118,12 +118,12 @@ private static void Main(string[] args)

Target("docs", DependsOn("install", "install-mdsnippets"), () => {
// Run docs site
RunNpm("run docs");
Run("npm", "run docs");
});

Target("docs-build", DependsOn("install", "install-mdsnippets"), () => {
// Run docs site
RunNpm("run docs-build");
Run("npm", "run docs-build");
});

Target("docs-import-v3", DependsOn("docs-build"), () =>
Expand Down Expand Up @@ -153,10 +153,10 @@ private static void Main(string[] args)


Target("publish-docs-preview", DependsOn("docs-import-v3"), () =>
RunNpm("run deploy"));
Run("npm", "run deploy"));

Target("publish-docs", DependsOn("docs-import-v3"), () =>
RunNpm("run deploy:prod"));
Run("npm", "run deploy:prod"));

Target("benchmarks", () =>
Run("dotnet", "run --project src/MartenBenchmarks --configuration Release"));
Expand Down Expand Up @@ -272,9 +272,6 @@ private static void DeleteDirectory(DirectoryInfo baseDir)
baseDir.Delete(true);
}

private static void RunNpm(string args) =>
Run("npm", args, windowsName: "cmd.exe", windowsArgs: $"/c npm {args}");

private static string GetEnvironmentVariable(string variableName)
{
var val = Environment.GetEnvironmentVariable(variableName);
Expand Down
2 changes: 1 addition & 1 deletion build/build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ItemGroup>
<PackageReference Include="Bullseye" Version="3.3.0" />
<PackageReference Include="Npgsql" Version="4.1.3.1" />
<PackageReference Include="SimpleExec" Version="6.2.0" />
<PackageReference Include="SimpleExec" Version="10.0.0-beta.1" />
<PackageReference Include="Westwind.Utilities" Version="3.0.37" />
</ItemGroup>
</Project>

0 comments on commit 85875f8

Please sign in to comment.