From 655794bac7aad95b6357da738c9a3cae511dee96 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sat, 21 Oct 2023 16:53:15 +0100 Subject: [PATCH] Added a Husky pre-commit to always build before a commit --- package.json | 4 +++- yarn.lock | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 70067ee..f9f12ba 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "prepare": "husky install" }, "dependencies": { "@headlessui/react": "^1.7.17", @@ -28,6 +29,7 @@ "autoprefixer": "^10", "eslint": "^8", "eslint-config-next": "13.5.4", + "husky": "^8.0.3", "postcss": "^8", "tailwindcss": "^3", "typescript": "^5" diff --git a/yarn.lock b/yarn.lock index ff7c5ca..8bb6319 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1419,6 +1419,11 @@ has@^1.0.3: resolved "https://registry.yarnpkg.com/has/-/has-1.0.4.tgz#2eb2860e000011dae4f1406a86fe80e530fb2ec6" integrity sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ== +husky@^8.0.3: + version "8.0.3" + resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184" + integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== + ieee754@^1.1.13: version "1.2.1" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"