diff --git a/README.md b/README.md index 985c2f1..5a91a5f 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ oak-builder haina-cn --env=prod # 包含内部 SDK oak-builder haina-cn --include-internal -# 添加额外模型 +# 添加额外依赖 oak-builder haina-cn --extra=model1 --extra=model2 # 自定义配置 @@ -43,7 +43,7 @@ npm run dev -- haina-cn --help - `--include-internal`: 包含 oak-internal-sdk 到镜像中 - `--env=`: 环境类型 (dev|prod|staging),默认: dev -- `--extra=`: 额外的模型目录(可多次使用) +- `--extra=`: 额外的依赖目录(可多次使用) - `--registry=`: npm 镜像站地址 - `--port=`: 暴露的端口号,默认: 3001 - `--node-version=`: Node.js 版本,默认: 20 diff --git a/src/cli.ts b/src/cli.ts index 3648e04..b11ba18 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -72,7 +72,7 @@ function parseCliArgs(): ParsedArgs | null { 选项: --env= 环境类型 (dev|prod|staging),默认: dev - --extra= 额外的模型目录(可多次使用) + --extra= 额外的依赖目录(可多次使用) --registry= npm 镜像站地址,默认: https://registry.npmmirror.com --port= 暴露的端口号,默认: 3001 --node-version= Node.js 版本,默认: 20 @@ -335,7 +335,7 @@ function main(): void { console.log(` 项目目录: ${projectDir}`); console.log(` 环境: ${options.env}`); console.log( - ` 额外模型: ${options.extra.length > 0 ? options.extra.join(", ") : "无"}` + ` 额外依赖: ${options.extra.length > 0 ? options.extra.join(", ") : "无"}` ); console.log(` npm 镜像站: ${options.registry}`); console.log(` 端口: ${options.port}`);