File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"scripts" : [
3
3
{
4
- "cmd " : " prepare " ,
5
- "script " : " npx codeg hooks " ,
6
- "desc " : " 预执行脚本, 用来初始化 hooks 等配置 "
4
+ "command " : " npx codeg hooks " ,
5
+ "display " : " prepare " ,
6
+ "description " : " 预执行脚本, 用来初始化 hooks 等配 "
7
7
},
8
8
{
9
- "cmd " : " build " ,
10
- "script " : " unbuild " ,
11
- "desc " : " 使用 unbuild 构建项目, 输出到 dist 目录"
9
+ "command " : " unbuild " ,
10
+ "display " : " build " ,
11
+ "description " : " 使用 unbuild 构建项目, 输出到 dist 目录"
12
12
},
13
13
{
14
- "cmd " : " stub" ,
15
- "script " : " unbuild -- stub" ,
16
- "desc " : " 使用 unbuild 软构建项目, 方便调试"
14
+ "command " : " unbuild -- stub" ,
15
+ "display " : " stub" ,
16
+ "description " : " 使用 unbuild 软构建项目, 方便调试"
17
17
},
18
18
{
19
- "cmd " : " release" ,
20
- "script " : " dotenv release-it --ci " ,
21
- "desc " : " 发布项目到 npm 仓库, 并推送 Github"
19
+ "command " : " dotenv release-it --ci " ,
20
+ "display " : " release" ,
21
+ "description " : " 发布项目到 npm 仓库, 并推送 Github"
22
22
}
23
23
]
24
24
}
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ import { CommandOptions } from "@/types";
14
14
export function genScriptConfig ( scripts : { [ key : string ] : string } ) {
15
15
return Object . keys ( scripts ) . map ( ( key ) => {
16
16
return {
17
- command : key ,
18
- display : scripts [ key ] ,
17
+ command : scripts [ key ] ,
18
+ display : key ,
19
19
description : "description the function of this cmd command" ,
20
20
} ;
21
21
} ) ;
You can’t perform that action at this time.
0 commit comments