File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff 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配置文件使用回调函数的形式接收环境变量,并返回配置
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments