Adding husky config

This commit is contained in:
Glen Maddern 2025-07-03 14:11:53 +10:00
commit e682ad8396
3 changed files with 14 additions and 1 deletions

1
.husky/pre-commit Executable file
View file

@ -0,0 +1 @@
./scripts/pre-commit

View file

@ -27,7 +27,8 @@
"prettier:fix": "prettier --write .",
"fix:oranda": "sed -i 's/```tsx/```ts/g' README.md",
"build:site": "npx @axodotdev/oranda build",
"deploy:site": "npx wrangler deploy"
"deploy:site": "npx wrangler deploy",
"prepare": "husky"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.13.3",
@ -36,6 +37,7 @@
"devDependencies": {
"@axodotdev/oranda": "^0.6.5",
"@types/react": "^19.0.12",
"husky": "^9.1.7",
"prettier": "^3.5.3",
"react": "^19.0.0",
"tsup": "^8.4.0",

10
pnpm-lock.yaml generated
View file

@ -21,6 +21,9 @@ importers:
'@types/react':
specifier: ^19.0.12
version: 19.0.12
husky:
specifier: ^9.1.7
version: 9.1.7
prettier:
specifier: ^3.5.3
version: 3.5.3
@ -998,6 +1001,11 @@ packages:
resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==}
engines: {node: '>= 0.8'}
husky@9.1.7:
resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
engines: {node: '>=18'}
hasBin: true
iconv-lite@0.6.3:
resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
engines: {node: '>=0.10.0'}
@ -2320,6 +2328,8 @@ snapshots:
statuses: 2.0.1
toidentifier: 1.0.1
husky@9.1.7: {}
iconv-lite@0.6.3:
dependencies:
safer-buffer: 2.1.2