From c425c2556628229d3245dca16133630862756c97 Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Fri, 26 Jan 2024 15:09:17 +0100 Subject: [PATCH] refactor(husky): migrate to v9 --- .husky/commit-msg | 6 +----- .husky/pre-commit | 4 ---- package.json | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 20bcf293..af3090a8 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,5 +1 @@ -#!/bin/sh -# shellcheck source=./_/husky.sh -. "$(dirname "$0")/_/husky.sh" - -pnpm commitlint --config .commitlintrc.cjs --edit "$1" \ No newline at end of file +pnpm commitlint --config .commitlintrc.cjs --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index 4610e58d..cb2c84d5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1 @@ -#!/bin/sh -# shellcheck source=./_/husky.sh -. "$(dirname "$0")/_/husky.sh" - pnpm lint-staged diff --git a/package.json b/package.json index dd37659b..e5f03d5f 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "lint": "eslint --ext .js,.ts,.vue . && nuxt typecheck", "lint:fix": "eslint --ext .js,.ts,.vue --fix . && nuxt typecheck --fix", "prepack": "pnpm build", - "prepare": "husky install" + "prepare": "husky" }, "type": "module", "types": "./dist/module.d.ts",