From bb889ef8850d6b6aebcc9059bb346d019fd57148 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 26 Aug 2024 14:20:08 +0700 Subject: [PATCH] chore: add husky pre-commit fix: test --- .husky/pre-commit | 5 +---- package.json | 8 +++++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 0da96d6ba..a4aa5add4 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx pretty-quick --staged +npm run lint --fix \ No newline at end of file diff --git a/package.json b/package.json index 68c11c68c..c86405182 100644 --- a/package.json +++ b/package.json @@ -41,14 +41,16 @@ "build": "yarn build:web && yarn build:electron", "build:publish": "yarn copy:assets && yarn build:web && yarn workspace jan build:publish", "dev:joi": "yarn workspace @janhq/joi install && yarn workspace @janhq/joi dev", - "build:joi": "yarn workspace @janhq/joi install && yarn workspace @janhq/joi build" + "build:joi": "yarn workspace @janhq/joi install && yarn workspace @janhq/joi build", + "prepare": "husky" }, "devDependencies": { "concurrently": "^8.2.1", "cpx": "^1.5.0", + "husky": "^9.1.5", "rimraf": "^3.0.2", - "wait-on": "^7.0.1", - "run-script-os": "^1.1.6" + "run-script-os": "^1.1.6", + "wait-on": "^7.0.1" }, "version": "0.0.0" }