diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 5ee7abd..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1 +0,0 @@ -pnpm exec lint-staged diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100755 index 98475b5..0000000 --- a/.husky/pre-push +++ /dev/null @@ -1 +0,0 @@ -pnpm test diff --git a/package.json b/package.json index 55b26bb..228d094 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "test:coverage": "vitest run --coverage", "preview": "vite preview", "preview:coverage": "vite preview --outDir coverage --port 5175", - "prepare": "husky install" + "prepare": "simple-git-hooks" }, "dependencies": { "@chakra-ui/anatomy": "^2.2.2", @@ -61,6 +61,7 @@ "lint-staged": "^15.2.10", "prettier": "^3.3.3", "rollup": "^4.22.4", + "simple-git-hooks": "^2.11.1", "terser": "^5.33.0", "typescript": "^5.6.2", "vite": "^5.4.7", @@ -74,6 +75,10 @@ "*": "prettier --write --ignore-unknown", "*.{js,jsx,ts,tsx}": "eslint --fix --report-unused-disable-directives --max-warnings 0" }, + "simple-git-hooks": { + "pre-commit": "pnpm exec lint-staged", + "pre-push": "pnpm test" + }, "prettier": { "singleQuote": true, "printWidth": 120, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 39ce95d..e1def0d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -116,7 +116,7 @@ importers: version: 4.3.1(vite@5.4.7(@types/node@22.6.1)(sass@1.79.3)(terser@5.33.0)) '@vitest/coverage-v8': specifier: ^2.1.1 - version: 2.1.1(vitest@2.1.1(@types/node@22.6.1)(@vitest/ui@2.1.1)(jsdom@25.0.1)(sass@1.79.3)(terser@5.33.0)) + version: 2.1.1(vitest@2.1.1) '@vitest/ui': specifier: ^2.1.1 version: 2.1.1(vitest@2.1.1) @@ -147,6 +147,9 @@ importers: rollup: specifier: ^4.22.4 version: 4.22.4 + simple-git-hooks: + specifier: ^2.11.1 + version: 2.11.1 terser: specifier: ^5.33.0 version: 5.33.0 @@ -3546,6 +3549,10 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} + simple-git-hooks@2.11.1: + resolution: {integrity: sha512-tgqwPUMDcNDhuf1Xf6KTUsyeqGdgKMhzaH4PAZZuzguOgTl5uuyeYe/8mWgAr6IBxB5V06uqEf6Dy37gIWDtDg==} + hasBin: true + sirv@2.0.4: resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==} engines: {node: '>= 10'} @@ -6226,7 +6233,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@2.1.1(vitest@2.1.1(@types/node@22.6.1)(@vitest/ui@2.1.1)(jsdom@25.0.1)(sass@1.79.3)(terser@5.33.0))': + '@vitest/coverage-v8@2.1.1(vitest@2.1.1)': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -7928,6 +7935,8 @@ snapshots: signal-exit@4.1.0: {} + simple-git-hooks@2.11.1: {} + sirv@2.0.4: dependencies: '@polka/url': 1.0.0-next.28