diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..8ec9dd5 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +./scripts/pre-commit diff --git a/package.json b/package.json index 9ae59dd..aa1b1bb 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8d2bee6..64854db 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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