Skip to content

Commit 4305115

Browse files
committed
refactor(app): 更新
1 parent 5737d42 commit 4305115

File tree

4 files changed

+145
-98
lines changed

4 files changed

+145
-98
lines changed

package-lock.json

+132-87
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@rollup/plugin-typescript": "^11.1.5",
5454
"@types/fs-extra": "^11.0.2",
5555
"@typescript-eslint/eslint-plugin": "^6.7.4",
56-
"code-genius": "^0.4.32",
56+
"code-genius": "^0.4.36",
5757
"dotenv-cli": "^7.3.0",
5858
"eslint-plugin-simple-import-sort": "^10.0.0",
5959
"esno": "^0.17.0",

scripts.config.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"scripts": [
33
{
4-
"cmd": "prepare",
5-
"script": "npx codeg hooks",
6-
"desc": "自动执行脚本"
4+
"command": "npx codeg hooks",
5+
"display": "prepare",
6+
"description": "自动执行脚本"
77
},
88
{
9-
"cmd": "build",
10-
"script": "rollup -c",
11-
"desc": "构建脚本"
9+
"command": "rollup -c",
10+
"display": "build",
11+
"description": "构建脚本"
1212
},
1313
{
14-
"cmd": "release",
15-
"script": "dotenv release-it --ci",
16-
"desc": "发布脚本"
14+
"command": "dotenv release-it --ci",
15+
"display": "release",
16+
"description": "发布脚本"
1717
}
1818
]
1919
}

src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ async function checkGitUserEmail(ruleEmail: string) {
9191
const gitUserInstaller = (config: GitUserOptions) => {
9292
const { ruleEmail, ruleName } = config;
9393
return {
94-
name: "gitUserInstaller",
94+
name: "gituser",
95+
describe: "设置或校验 git user 信息是否规范",
96+
command: "gituser",
9597
setup: (cli: CAC) => {
9698
cli
9799
.command("gituser", "设置或校验 git user 信息是否规范")

0 commit comments

Comments
 (0)