|
1 | 1 | {
|
2 | 2 | "name": "JavaScriptCollection",
|
3 |
| - "description": "一本有趣的JavaScript合集", |
4 |
| - "version": "0.0.2-alpha.18", |
5 | 3 | "type": "module",
|
| 4 | + "version": "0.0.2-alpha.18", |
| 5 | + "packageManager": "[email protected]", |
| 6 | + "description": "一本有趣的JavaScript合集", |
6 | 7 | "authorInfo": {
|
7 | 8 | "name": "微信公众号:储凡",
|
8 | 9 |
|
9 | 10 | "url": "https://github.com/142vip",
|
10 | 11 | "homePage": "https://code.142vip.cn"
|
11 | 12 | },
|
12 |
| - "packageManager": "[email protected]", |
13 | 13 | "engines": {
|
14 | 14 | "node": ">=18.x",
|
15 | 15 | "pnpm": "9.6.0"
|
16 | 16 | },
|
17 | 17 | "scripts": {
|
18 | 18 | "preinstall": "npx only-allow pnpm && chmod +x ./scripts/*",
|
19 |
| - "prepare": "husky install", |
| 19 | + "postinstall": "simple-git-hooks", |
20 | 20 | "clean": "npx fa clean --ignore-tips --dist --vite --all",
|
21 |
| - "dev": "vuepress dev docs", |
22 | 21 | "lint": "npx fa lint",
|
23 | 22 | "lint:fix": "npx fa lint --fix",
|
| 23 | + "dev": "vuepress dev docs", |
24 | 24 | "build": "vuepress build docs --clean-temp --clean-cache",
|
25 | 25 | "build:proxy": "PROXY_DOMAIN=true vuepress build docs --clean-temp --clean-cache",
|
26 | 26 | "deploy:vercel": "vercel --prod",
|
|
31 | 31 | "@142vip/release-version": "^0.0.1-alpha.9",
|
32 | 32 | "@142vip/utils": "0.0.1-alpha.4",
|
33 | 33 | "@antfu/eslint-config": "^2.27.3",
|
34 |
| - "@commitlint/cli": "^18.6.1", |
35 |
| - "@commitlint/config-conventional": "^18.6.3", |
36 | 34 | "@vue/repl": "^4.3.1",
|
37 | 35 | "@vuepress/bundler-vite": "2.0.0-rc.15",
|
38 | 36 | "@vuepress/plugin-markdown-image": "2.0.0-rc.30",
|
39 | 37 | "eslint": "8.55.0",
|
40 | 38 | "hls.js": "^1.5.13",
|
41 |
| - "husky": "^8.0.3", |
42 |
| - "lint-staged": "^15.2.7", |
43 | 39 | "mermaid": "^10.9.1",
|
44 | 40 | "reveal.js": "^5.1.0",
|
| 41 | + "simple-git-hooks": "^2.11.1", |
45 | 42 | "typescript": "^5.5.4",
|
46 | 43 | "vercel": "^32.7.2",
|
47 | 44 | "vidstack": "^1.11.30",
|
48 | 45 | "vue": "^3.5.8",
|
49 | 46 | "vuepress": "2.0.0-rc.15",
|
50 | 47 | "vuepress-plugin-search-pro": "2.0.0-rc.53",
|
51 | 48 | "vuepress-theme-hope": "2.0.0-rc.53"
|
| 49 | + }, |
| 50 | + "simple-git-hooks": { |
| 51 | + "pre-commit": "pnpm lint", |
| 52 | + "prepare-commit-msg": "pnpm build" |
52 | 53 | }
|
53 | 54 | }
|
0 commit comments