Skip to content

Commit 6e3629c

Browse files
committed
maint: Add upgrade to remove husky.
1 parent 16b900d commit 6e3629c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,16 @@ serve: install
171171
$(YARN) run start
172172

173173

174-
upgrade:
174+
upgrade:\
175+
.git/hooks/commit-msg\
176+
upgrade-remove-husky
175177
@# Upgrade target, depends on other upgrades
178+
179+
180+
upgrade-remove-husky:
181+
test -d .husky\
182+
&& rm -R .husky\
183+
&& git add .husky\
184+
&& git commit -m"maint: @patternslib/dev upgrade - remove .husky directory in favor of git hooks."\
185+
|| :
186+
-git config --unset core.hooksPath

0 commit comments

Comments
 (0)