Skip to content

Commit

Permalink
refactor(app): 更新
Browse files Browse the repository at this point in the history
  • Loading branch information
OSpoon committed Oct 10, 2023
1 parent 9e08df3 commit ea2170b
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 98 deletions.
219 changes: 132 additions & 87 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@rollup/plugin-typescript": "^11.1.5",
"@types/fs-extra": "^11.0.2",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"code-genius": "^0.4.32",
"code-genius": "^0.4.36",
"dotenv-cli": "^7.3.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"esno": "^0.17.0",
Expand Down
18 changes: 9 additions & 9 deletions scripts.config.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"scripts": [
{
"cmd": "prepare",
"script": "npx codeg hooks",
"desc": "自动执行脚本"
"command": "npx codeg hooks",
"display": "prepare",
"description": "自动执行脚本"
},
{
"cmd": "build",
"script": "rollup -c",
"desc": "构建脚本"
"command": "rollup -c",
"display": "build",
"description": "构建脚本"
},
{
"cmd": "release",
"script": "dotenv release-it --ci",
"desc": "发布脚本"
"command": "dotenv release-it --ci",
"display": "release",
"description": "发布脚本"
}
]
}
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const npmRegistry = async (registry: string) => {

const npmRegistryInstaller = () => {
return {
name: "npmRegistryInstaller",
name: "registry",
describe: "切换 NPM 镜像地址",
command: "registry",
setup: (cli: CAC) => {
cli
.command("registry", "切换 NPM 镜像地址")
Expand Down

0 comments on commit ea2170b

Please sign in to comment.