Skip to content

Commit 95f25ad

Browse files
Fix husky autoinstall
* Correctly install husky on the project * Update pre-commit *Works on my machine now!* --------- Co-authored-by: LifeHckr <jarodthereal@gmail.com>
1 parent 7d242cc commit 95f25ad

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Note : for local installation use 'dotnet' prefix. e.g. 'dotnet husky'
66

77
## run all tasks
8-
husky run
8+
dotnet husky run
99

1010
### run all tasks with group: 'group-name'
1111
#husky run --group group-name

Funk Engine.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
<Project Sdk="Godot.NET.Sdk/4.3.0">
1+
<Project Sdk="Godot.NET.Sdk/4.3.0">
22
<PropertyGroup>
33
<TargetFramework>net6.0</TargetFramework>
44
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net7.0</TargetFramework>
55
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'ios' ">net8.0</TargetFramework>
66
<EnableDynamicLoading>true</EnableDynamicLoading>
77
<RootNamespace>FunkEngine</RootNamespace>
88
</PropertyGroup>
9+
<Target Name="Husky" BeforeTargets="Restore;CollectPackageReferences" Condition="'$(HUSKY)' != 0">
10+
<Exec Command="dotnet tool restore" StandardOutputImportance="Low" StandardErrorImportance="High" />
11+
<Exec Command="dotnet husky install" StandardOutputImportance="Low" StandardErrorImportance="High" WorkingDirectory="." />
12+
</Target>
913
</Project>

0 commit comments

Comments
 (0)