mirror of
https://github.com/gotson/komga.git
synced 2025-12-22 00:13:30 +01:00
build: migrate to Husky 5 (leftovers)
This commit is contained in:
parent
97871f7fbc
commit
163b7f2344
3 changed files with 8223 additions and 45 deletions
30
.husky/_/husky.sh
Normal file
30
.husky/_/husky.sh
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
if [ -z "$husky_skip_init" ]; then
|
||||
debug () {
|
||||
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
|
||||
}
|
||||
|
||||
readonly hook_name="$(basename "$0")"
|
||||
debug "starting $hook_name..."
|
||||
|
||||
if [ "$HUSKY" = "0" ]; then
|
||||
debug "HUSKY env variable is set to 0, skipping hook"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -f ~/.huskyrc ]; then
|
||||
debug "sourcing ~/.huskyrc"
|
||||
. ~/.huskyrc
|
||||
fi
|
||||
|
||||
export readonly husky_skip_init=1
|
||||
sh -e "$0" "$@"
|
||||
exitCode="$?"
|
||||
|
||||
if [ $exitCode != 0 ]; then
|
||||
echo "husky - $hook_name hook exited with code $exitCode (error)"
|
||||
exit $exitCode
|
||||
fi
|
||||
|
||||
exit 0
|
||||
fi
|
||||
8231
package-lock.json
generated
8231
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,8 @@
|
|||
"@semantic-release/changelog": "^5.0.1",
|
||||
"@semantic-release/exec": "^5.0.0",
|
||||
"@semantic-release/git": "^9.0.0",
|
||||
"semantic-release": "^17.3.0"
|
||||
"semantic-release": "^17.3.0",
|
||||
"is-ci": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^11.0.0",
|
||||
|
|
@ -52,8 +53,8 @@
|
|||
]
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "husky install",
|
||||
"postinstall": "husky install",
|
||||
"prepare": "is-ci || husky install",
|
||||
"postinstall": "is-ci || husky install",
|
||||
"prepublishOnly": "pinst --disable",
|
||||
"postpublish": "pinst --enable"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue