diff --git a/README.md b/README.md index 7369b73..e62d861 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,10 @@ pnpm dev pnpm build ``` -- cz规范提交git +- cz插件提交git ```bash -npx cz +pnpm commit ``` ## 素材来源 diff --git a/package.json b/package.json index a60e57d..749dec5 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "preview": "vite preview", "prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.json --fix", - "prepare": "husky install" + "prepare": "husky install", + "commit": "cz" }, "config": { "commitizen": { @@ -16,7 +17,7 @@ } }, "lint-staged": { - "./src/**/*.{ts,tsx}": "lint", + "./src/**/*.{vue,js,jsx,ts,tsx,json}": "eslint --fix", "./src/**/*.{js,jsx,ts,tsx,less,json}": "prettier --loglevel warn --write" }, "dependencies": {