From 52f8795742e0f0754b44f5546680ba342005fb6a Mon Sep 17 00:00:00 2001 From: Simone Gizzi Date: Tue, 19 Sep 2023 08:56:17 +0200 Subject: [PATCH] chore: Add dependency --- package-lock.json | 16 ++++++++++++++++ package.json | 6 ++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index e3657254..44d46591 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,9 +5,25 @@ "packages": { "": { "devDependencies": { + "husky": "^8.0.0", "prettier": "^3.0.2" } }, + "node_modules/husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true, + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/prettier": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.2.tgz", diff --git a/package.json b/package.json index 58e49511..1d8fc31b 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,10 @@ { "scripts": { - "format": "prettier --write ." + "format": "prettier --write .", + "prepare": "husky install" }, "devDependencies": { - "prettier": "^3.0.2" + "prettier": "^3.0.2", + "husky": "^8.0.0" } }