diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..aa5526d --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +pnpm build check test diff --git a/package.json b/package.json index ce01353..f31887f 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,12 @@ "exec": "turbo run exec", "test": "turbo run test", "check": "turbo run check", - "release": "turbo run build && pnpm publish -r" + "release": "turbo run build && pnpm publish -r", + "prepare": "husky install" }, "devDependencies": { "@changesets/cli": "^2.28.1", + "husky": "^9.1.7", "prettier": "^3.5.3", "turbo": "^2.4.4", "typescript": "5.8.2" @@ -25,4 +27,4 @@ "esbuild" ] } -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 40e911e..4dda281 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@changesets/cli': specifier: ^2.28.1 version: 2.28.1 + husky: + specifier: ^9.1.7 + version: 9.1.7 prettier: specifier: ^3.5.3 version: 3.5.3 @@ -1668,6 +1671,11 @@ packages: resolution: {integrity: sha512-3gKm/gCSUipeLsRYZbbdA1BD83lBoWUkZ7G9VFrhWPAU76KwYo5KR8V28bpoPm/ygy0x5/GCbpRQdY7VLYCoIg==} hasBin: true + husky@9.1.7: + resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==} + engines: {node: '>=18'} + hasBin: true + iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} @@ -4580,6 +4588,8 @@ snapshots: human-id@4.1.1: {} + husky@9.1.7: {} + iconv-lite@0.4.24: dependencies: safer-buffer: 2.1.2