Browse Source

fix(tool): Use correct Dart SDK for husky

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/771/head
jld3103 1 year ago
parent
commit
6876bc6f68
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      .husky/commit-msg
  2. 2
      tool/setup.sh

2
.husky/commit-msg

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh" . "$(dirname -- "$0")/_/husky.sh"
dart run commitlint_cli --edit "$1" fvm dart run commitlint_cli --edit "$1"

2
tool/setup.sh

@ -8,4 +8,4 @@ for package in $(yq -r ".dev_dependencies | keys | .[]" pubspec.yaml); do
done done
echo "y" | fvm install echo "y" | fvm install
melos bootstrap melos bootstrap
dart run husky install fvm dart run husky install

Loading…
Cancel
Save