Skip to content

Commit 658b4e8

Browse files
committed
refactor: bin名称从foca-openapi改为openapi
BREAKING CHANGE: bin名称从foca-openapi改为openapi
1 parent cfa4232 commit 658b4e8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default defineConfig({
3636
指令的作用是把openapi文档转换为前端服务,代码会自动合并到库文件中
3737

3838
```bash
39-
npx foca-openapi
39+
npx openapi
4040
```
4141

4242
## 3. 创建服务
@@ -99,8 +99,8 @@ export const barClient = new OpenapiClientBar(adapter2);
9999
不同运行环境下,可能需要使用不同的服务端,比如开发一套服务,生产一套服务。因此执行指令时可以传入`-env`参数
100100

101101
```bash
102-
npx foca-openapi --env development
103-
npx foca-openapi --env production
102+
npx openapi --env development
103+
npx openapi --env production
104104
```
105105

106106
配置文件使用回调函数的形式接收环境变量,并返回配置

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
},
4343
"./package.json": "./package.json"
4444
},
45-
"bin": "dist/bin.mjs",
45+
"bin": {
46+
"openapi": "dist/bin.mjs"
47+
},
4648
"type": "module",
4749
"publishConfig": {
4850
"type": "commonjs",

0 commit comments

Comments
 (0)