-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
83 lines (83 loc) · 2.86 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"name": "demo",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/liangskyli/dumi-lerna-demo"
},
"scripts": {
"build": "lerna run build",
"dev": "dumi dev",
"docs:build": "dumi build",
"preinstall": "npx only-allow pnpm",
"lint": "npm run lint:es && npm run lint:css",
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
"prepare": "husky && dumi setup",
"prepublishOnly": "father doctor && npm run build",
"publish-all": "lerna run build && lerna publish from-package",
"publish-all-pre": "lerna run build && lerna publish from-package --pre-dist-tag beta",
"start": "npm run dev",
"test": "lerna run test",
"update:deps": "pnpm update --interactive --latest",
"version:graduate": "echo '预发布版本包升级为稳定版本' && cross-env HUSKY=1 lerna version --conventional-graduate",
"version:major": "echo '发布主版本' && cross-env HUSKY=1 lerna version major",
"version:minor": "echo '发布小版本' && cross-env HUSKY=1 lerna version minor",
"version:patch": "echo '发布补丁版本' && cross-env HUSKY=1 lerna version patch",
"version:pre": "echo '发布预发布beta版本' && cross-env HUSKY=1 lerna version prerelease --preid beta",
"version:premajor": "echo '发布主版本beta版本' && cross-env HUSKY=1 lerna version premajor --preid beta",
"version:preminor": "echo '发布小版本beta版本' && cross-env HUSKY=1 lerna version preminor --preid beta"
},
"lint-staged": {
"*.{md,json}": [
"prettier --write --no-error-on-unmatched-pattern"
],
"*.{css,less}": [
"stylelint --fix",
"prettier --write"
],
"*.{js,jsx}": [
"eslint --fix",
"prettier --write"
],
"*.{ts,tsx}": [
"eslint --fix",
"prettier --parser=typescript --write"
]
},
"devDependencies": {
"@commitlint/cli": "^19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/config-pnpm-scopes": "^19.1.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@umijs/lint": "^4.3.14",
"@vitest/coverage-v8": "^2.0.5",
"dumi": "^2.4.7",
"eslint": "^9.9.0",
"father": "^4.5.0",
"husky": "^9.1.4",
"jsdom": "^24.1.1",
"lerna": "^8.1.8",
"lint-staged": "^15.2.9",
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^4.0.0",
"prettier-plugin-packagejson": "^2.5.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"stylelint": "^16.8.2",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
},
"packageManager": "pnpm@8.6.9",
"engines": {
"node": ">=18.13.0",
"pnpm": "^8"
},
"authors": [
"liangsky <640634387@qq.com>"
]
}