openapi-ts-request 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -27,8 +27,8 @@ pnpm i openapi-ts-request -D
27
27
 
28
28
  ### CosmiConfig
29
29
 
30
- 在项目根目录新建 ```openapi-ts-request.config.ts```
31
- > 配置文件还支持 ***.openapi-ts-request.ts***, ***openapi-ts-request.config.cjs*** 等格式,参考 [cosmiconfig](https://github.com/cosmiconfig/cosmiconfig?tab=readme-ov-file#cosmiconfig)
30
+ 在项目根目录新建 ```openapi-ts.config.ts```
31
+ > 配置文件还支持 ***.openapi-ts.ts***, ***openapi-ts.config.cjs*** 等格式,参考 [cosmiconfig](https://github.com/cosmiconfig/cosmiconfig?tab=readme-ov-file#cosmiconfig)
32
32
 
33
33
  ```ts
34
34
  export default {
@@ -51,7 +51,7 @@ export default [
51
51
  ]
52
52
  ```
53
53
 
54
- 在 ```package.json``` 的 ```script``` 中添加命令: ```"openapi": "openapi-ts-request",```
54
+ 在 ```package.json``` 的 ```script``` 中添加命令: ```"openapi": "openapi-ts",```
55
55
 
56
56
  生成结果:
57
57
 
@@ -61,7 +61,7 @@ npm run openapi
61
61
 
62
62
  ### JS
63
63
 
64
- 任意目录 ```xxx/xxx``` 新建 ```openapi-ts-request.config.js```
64
+ 任意目录 ```xxx/xxx``` 新建 ```openapi-ts.config.js```
65
65
 
66
66
  ```ts
67
67
  const { generateService } = require('openapi-ts-request')
@@ -72,7 +72,7 @@ generateService({
72
72
  })
73
73
  ```
74
74
 
75
- 在 ```package.json``` 的 ```script``` 中添加命令: ```"openapi": "node xxx/xxx/openapi-ts-request.config.js"```
75
+ 在 ```package.json``` 的 ```script``` 中添加命令: ```"openapi": "node xxx/xxx/openapi-ts.config.js"```
76
76
 
77
77
  生成结果:
78
78
 
@@ -82,7 +82,7 @@ npm run openapi
82
82
 
83
83
  ### TS
84
84
 
85
- 任意目录 ```xxx/xxx``` 新建 ```openapi-ts-request.config.ts```
85
+ 任意目录 ```xxx/xxx``` 新建 ```openapi-ts.config.ts```
86
86
 
87
87
  ```ts
88
88
  const { generateService } = require('openapi-ts-request')
@@ -93,7 +93,7 @@ generateService({
93
93
  })
94
94
  ```
95
95
 
96
- 在 ```package.json``` 的 ```script``` 中添加命令: ```"openapi": "ts-node xxx/xxx/openapi-ts-request.config.ts",```
96
+ 在 ```package.json``` 的 ```script``` 中添加命令: ```"openapi": "ts-node xxx/xxx/openapi-ts.config.ts",```
97
97
 
98
98
  生成结果:
99
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-ts-request",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Swagger2/OpenAPI3 to TypeScript, request client, request mock service, enum, type field label, JSON Schemas",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "types": "dist/index.d.ts",
13
13
  "bin": {
14
14
  "openapi": "dist/bin/openapi.js",
15
- "openapi-ts-request": "dist/bin/cli.js"
15
+ "openapi-ts": "dist/bin/cli.js"
16
16
  },
17
17
  "files": [
18
18
  "dist",