mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 12:27:16 +03:00
perf(husky): do not run checks if folder wasn't changed
This commit is contained in:
parent
d13afec204
commit
11dc184e01
@ -6,14 +6,29 @@
|
|||||||
|
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
cd tooling/api
|
if [ -z "$(git diff --name-only tooling/api)" ]; then
|
||||||
yarn format
|
echo "skipping api - no changes detected"
|
||||||
yarn lint-fix
|
else
|
||||||
|
cd tooling/api
|
||||||
|
yarn format
|
||||||
|
yarn lint-fix
|
||||||
|
cd ../..
|
||||||
|
fi
|
||||||
|
|
||||||
cd ../cli.js
|
if [ -z "$(git diff --name-only tooling/cli.js)" ]; then
|
||||||
yarn format
|
echo "skipping cli.js - no changes detected"
|
||||||
yarn lint-fix
|
else
|
||||||
|
cd tooling/cli.js
|
||||||
|
yarn format
|
||||||
|
yarn lint-fix
|
||||||
|
cd ../..
|
||||||
|
fi
|
||||||
|
|
||||||
cd ../create-tauri-app
|
if [ -z "$(git diff --name-only tooling/create-tauri-app)" ]; then
|
||||||
yarn format
|
echo "skipping create-tauri-app - no changes detected"
|
||||||
yarn lint-fix
|
else
|
||||||
|
cd tooling/create-tauri-app
|
||||||
|
yarn format
|
||||||
|
yarn lint-fix
|
||||||
|
cd ../..
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user