Skip to content

Commit df9dd44

Browse files
committed
feat: improve build performance
1 parent e5ee6c0 commit df9dd44

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/Zammad.Client.SystemTextJson/Zammad.Client.SystemTextJson.csproj

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,24 @@
3030
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
3131
<PackageReference Include="System.Net.Http.Json" />
3232
</ItemGroup>
33+
<!-- Automatically setup Husky.Net, set HUSKY to 0 in CI/CD disable this -->
3334
<Target
34-
Name="Husky"
35-
BeforeTargets="Restore;CollectPackageReferences"
36-
Condition="'$(HUSKY)' != 0 and '$(IsCrossTargetingBuild)' == 'true'"
35+
Name="husky"
36+
AfterTargets="Restore"
37+
Condition="'$(HUSKY)' != 0"
38+
Inputs="../../dotnet-tools.json"
39+
Outputs="../../.husky/_/install.stamp"
3740
>
3841
<Exec Command="dotnet tool restore" StandardOutputImportance="Low" StandardErrorImportance="High" />
3942
<Exec
4043
Command="dotnet husky install"
4144
StandardOutputImportance="Low"
4245
StandardErrorImportance="High"
43-
WorkingDirectory="../.."
46+
WorkingDirectory="../../"
4447
/>
48+
<Touch Files="../../.husky/_/install.stamp" AlwaysCreate="true" />
49+
<ItemGroup>
50+
<FileWrites Include="../../.husky/_/install.stamp" />
51+
</ItemGroup>
4552
</Target>
4653
</Project>

0 commit comments

Comments
 (0)