sy-api-pro 0.1.2 → 0.1.3

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 +12 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,8 +1,18 @@
1
+ ## 安装
2
+ ```text
3
+ yarn add sy-api-pro -D 或 npm install sy-api-pro -D
4
+ ```
5
+
6
+ ## .api-config.ts 配置文件生成
7
+ ```text
8
+ npx sy-api-pro init
9
+ ```
10
+
1
11
  ## package.json
2
12
  ```json
3
13
  {
4
14
  "scripts": {
5
- "api": "sy-api-pro --config ./apis/.api-config.ts --project-id 888"
15
+ "api": "sy-api-pro create --config ./src/apis/.api-config.ts --project-id 888"
6
16
  }
7
17
  }
8
18
  ```
@@ -30,7 +40,7 @@ const config: ConfigModels = {
30
40
  module.exports = config;
31
41
  ```
32
42
 
33
- ## 使用
43
+ ## api 生成
34
44
  ```text
35
45
  yarn api -i 12345 或 yarn api --id 12345
36
46
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sy-api-pro",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "main": "./bin/index.ts",
5
5
  "types": "./bin/model.d.ts",
6
6
  "bin": {