chore: add husky; add post-commit auto import to gh & sh

This commit is contained in:
Ayo Ayco 2026-02-22 19:35:16 +01:00
parent 3400ffceb0
commit 38ab0b197e
3 changed files with 19 additions and 1 deletions

3
.husky/post-commit Normal file
View file

@ -0,0 +1,3 @@
echo "post-commit..."
git push gh --mirror
git push sh --mirror

View file

@ -7,7 +7,8 @@
"scripts": {
"preinstall": "npx only-allow pnpm",
"start": "node .",
"test": "generate-timezone-json --tab-file zone.tab"
"test": "generate-timezone-json --tab-file zone.tab",
"prepare": "husky"
},
"repository": {
"type": "git",
@ -23,5 +24,8 @@
"dependencies": {
"@vvo/tzdb": "^6.198.0",
"parse-zonetab": "^1.0.0"
},
"devDependencies": {
"husky": "^9.1.7"
}
}

View file

@ -14,6 +14,10 @@ importers:
parse-zonetab:
specifier: ^1.0.0
version: 1.0.0
devDependencies:
husky:
specifier: ^9.1.7
version: 9.1.7
packages:
@ -52,6 +56,11 @@ packages:
resolution: {integrity: sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA==}
engines: {node: '>=0.10.0'}
husky@9.1.7:
resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
engines: {node: '>=18'}
hasBin: true
inherits@2.0.4:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
@ -172,6 +181,8 @@ snapshots:
object-assign: 4.1.1
pinkie-promise: 2.0.1
husky@9.1.7: {}
inherits@2.0.4: {}
into-stream@2.0.1: