File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/sh
22
3- FILE=.links.disabled.yaml
3+ FILE=.links.temp- disabled.yaml
44if test -f " $FILE " ; then
5- # echo "$FILE exists. -> moving to .links. disabled.yaml"
6- mv . links. disabled.yaml .links.yaml
7- # echo "running yarn"
5+ # Only do the post-commit hook if the file was temp- disabled by the pre-commit hook.
6+ # Otherwise linking was actively (`yarn links:disable`) disabled and this hook should noop.
7+ mv .links.temp-disabled.yaml .links.yaml
88 yarnLog=$( yarn)
99 echo " [yarn-linker] The post-commit hook has re-enabled .links.yaml."
1010 exit 1
Original file line number Diff line number Diff line change 22
33FILE=" .links.yaml"
44if test -f " $FILE " ; then
5- # echo "$FILE exists. -> moving to .links.disabled.yaml"
6- mv .links.yaml .links.disabled.yaml
5+ mv .links.yaml .links.temp-disabled.yaml
76 # echo "running yarn"
87 x=$( yarn)
98 y=$( git add yarn.lock)
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ yarn-error.log
2121! /.yarn /versions
2222/.links.yaml
2323/.links.disabled.yaml
24+ /.links.temp-disabled.yaml
2425
2526# Playwright
2627/test-results /
You can’t perform that action at this time.
0 commit comments