tauri/.husky/pre-commit
Jacob Bolda 53e4dd8c2d
remove create-tauri-app (#3493)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-02-17 18:20:56 -03:00

25 lines
511 B
Bash
Executable File

#!/bin/sh
# Copyright 2019-2021 Tauri Programme within The Commons Conservancy
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
. "$(dirname "$0")/_/husky.sh"
if [ -z "$(git diff --name-only tooling/api)" ]; then
echo "skipping api - no changes detected"
else
cd tooling/api
yarn format
yarn lint-fix
cd ../..
fi
if [ -z "$(git diff --name-only tooling/cli/node)" ]; then
echo "skipping cli.js - no changes detected"
else
cd tooling/cli/node
yarn format
cd ../../..
fi