From 9f9e36f0cdaa873367aa2242869ad9ea9b9672d7 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sat, 21 Oct 2023 16:51:55 +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 68c943d1..2f00cea1 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.13", @@ -74,6 +75,7 @@ "@types/wavesurfer.js": "^6.0.6", "@wixc3/react-board": "^2.2.0", "autoprefixer": "^10.4.13", + "husky": "^8.0.3", "postcss": "^8.4.21", "tailwindcss": "^3.2.4" } diff --git a/yarn.lock b/yarn.lock index 0da4b7a9..78da8384 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3108,6 +3108,11 @@ https-proxy-agent@^5.0.0: agent-base "6" debug "4" +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== + idb@7.0.1: version "7.0.1" resolved "https://registry.npmjs.org/idb/-/idb-7.0.1.tgz"