|
18 | 18 | "preinstall": "npx only-allow pnpm && chmod +x ./scripts/*", |
19 | 19 | "postinstall": "rm -rf .git/hooks && npx simple-git-hooks", |
20 | 20 | "clean": "npx fa clean --dist --deps --vite --all --ignore-tips", |
21 | | - "clean:hooks": "rm -rf .git/hooks", |
| 21 | + "clean:hooks": "npx fa clean --git-hooks --all --ignore-tips", |
22 | 22 | "lint": "npx fa lint", |
23 | 23 | "lint:fix": "npx fa lint --fix", |
24 | 24 | "dev": "npx vuepress dev docs", |
25 | 25 | "build": "npx vuepress build docs --clean-temp --clean-cache", |
26 | 26 | "build:proxy": "NEED_PROXY=true npx vuepress build docs --clean-temp --clean-cache", |
27 | | - "release": "npx fa release --vip" |
| 27 | + "release": "npx fa release --vip --check-branch next --check-branch main", |
| 28 | + "check:commit": "npx node --loader ts-node/esm --no-warnings scripts/core/verify-commit.ts" |
28 | 29 | }, |
29 | 30 | "devDependencies": { |
30 | | - "@142vip/eslint-config": "0.0.1-alpha.3", |
31 | | - "@142vip/fairy-cli": "0.0.3-alpha.21", |
32 | | - "@142vip/utils": "0.0.1-alpha.31", |
33 | | - "@142vip/vuepress": "0.0.1-alpha.11", |
| 31 | + "@142vip/commit-linter": "0.0.1-alpha.1", |
| 32 | + "@142vip/eslint-config": "0.0.1-alpha.4", |
| 33 | + "@142vip/fairy-cli": "0.0.3-alpha.24", |
| 34 | + "@142vip/utils": "0.0.1-alpha.36", |
| 35 | + "@142vip/vuepress": "0.0.1-alpha.12", |
34 | 36 | "@vuepress/bundler-vite": "2.0.0-rc.20", |
35 | 37 | "only-allow": "1.2.1", |
36 | 38 | "simple-git-hooks": "2.11.1", |
| 39 | + "ts-node": "^10.9.2", |
37 | 40 | "vuepress": "2.0.0-rc.20" |
38 | 41 | }, |
39 | 42 | "simple-git-hooks": { |
40 | | - "pre-commit": "pnpm lint", |
41 | | - "prepare-commit-msg": "pnpm build" |
| 43 | + "pre-commit": "pnpm lint:fix", |
| 44 | + "commit-msg": "pnpm check:commit" |
42 | 45 | } |
43 | 46 | } |
0 commit comments