From a759c65468772bd087a0129cb382d34092239329 Mon Sep 17 00:00:00 2001 From: caijf <369756941@qq.com> Date: Wed, 20 Mar 2024 17:56:36 +0800 Subject: [PATCH] chore: update commitlint --- .gitignore | 1 + .husky/commit-msg | 5 +---- .husky/pre-commit | 5 +---- package.json | 32 +++++++++++++++++--------------- 4 files changed, 20 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index b156a65..70295b8 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ types # misc .DS_Store +.vscode npm-debug.log* yarn-debug.log* diff --git a/.husky/commit-msg b/.husky/commit-msg index b567676..990bd0b 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx --no -- commitlint --edit "$1" +npx --no -- commitlint --edit "$1" \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index cf0c46b..40672d9 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx --no-install lint-staged +npx --no-install lint-staged \ No newline at end of file diff --git a/package.json b/package.json index 2bfd3d8..4353003 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "types": "types/index.d.ts", "config": { "commitizen": { - "path": "./node_modules/cz-conventional-changelog" + "path": "@commitlint/cz-commitlint" } }, "lint-staged": { @@ -59,25 +59,27 @@ }, "homepage": "https://github.com/caijf/cache2#readme", "devDependencies": { - "@commitlint/cli": "^17.8.1", - "@commitlint/config-conventional": "^17.8.1", + "@commitlint/cli": "^19.2.1", + "@commitlint/config-conventional": "^19.1.0", + "@commitlint/cz-commitlint": "^19.2.0", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-terser": "^0.4.4", - "@rollup/plugin-typescript": "^11.1.5", - "@types/jest": "^29.5.10", - "@typescript-eslint/eslint-plugin": "^5.62.0", - "@typescript-eslint/parser": "^5.62.0", - "cz-conventional-changelog": "^3.3.0", - "eslint": "^8.54.0", - "husky": "^8.0.3", + "@rollup/plugin-typescript": "^11.1.6", + "@types/jest": "^29.5.12", + "@typescript-eslint/eslint-plugin": "^7.3.1", + "@typescript-eslint/parser": "^7.3.1", + "commitizen": "^4.3.0", + "eslint": "^8.57.0", + "husky": "^9.0.11", + "inquirer": "9", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", - "lint-staged": "^13.3.0", - "prettier": "^2.8.8", - "rollup": "^3.29.4", - "ts-jest": "^29.1.1", - "typescript": "^5.3.2" + "lint-staged": "^15.2.2", + "prettier": "^3.2.5", + "rollup": "^4.13.0", + "ts-jest": "^29.1.2", + "typescript": "^5.4.2" }, "dependencies": { "emitter-pro": "^1.0.3",