From d141acc28b2613899fa4f5a8c2698948d0ca9071 Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Thu, 27 Mar 2025 18:40:08 -0600 Subject: [PATCH 1/2] build: add husky --- .husky/pre-commit | 1 + package.json | 6 ++++-- pnpm-lock.yaml | 10 ++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .husky/pre-commit 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..38c34e9 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" }, "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 From 93231d404925df14b9cea9ec78bd54804f60afef Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Thu, 27 Mar 2025 18:43:38 -0600 Subject: [PATCH 2/2] Update package.json Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 38c34e9..f31887f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "test": "turbo run test", "check": "turbo run check", "release": "turbo run build && pnpm publish -r", - "prepare": "husky" + "prepare": "husky install" }, "devDependencies": { "@changesets/cli": "^2.28.1",