build: 集成基础配置

This commit is contained in:
陈凯龙
2021-12-07 16:36:59 +08:00
parent 5dbcf2397c
commit ced99de9b1
5 changed files with 32 additions and 0 deletions

9
.husky/common.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
command_exists () {
command -v "$1" >/dev/null 2>&1
}
# Workaround for Windows 10, Git Bash and Yarn
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi