Skip to content

Commit 84bcee9

Browse files
committed
refactor(app): 更新
1 parent 9ac4969 commit 84bcee9

File tree

4 files changed

+145
-98
lines changed

4 files changed

+145
-98
lines changed

package-lock.json

Lines changed: 132 additions & 87 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 9 additions & 9 deletions
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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const createProject = async (sources: ProjectSource[]) => {
3838

3939
const createProjectInstaller = () => {
4040
return {
41-
name: "createProjectInstaller",
41+
name: "create",
42+
describe: "运行 npm create 快速创建基础项目",
43+
command: "create",
4244
setup: (cli: CAC) => {
4345
cli
4446
.command("create", "运行 npm create 快速创建基础项目")

0 commit comments

Comments
 (0)