sy-api-pro 0.0.2 → 0.0.6

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 -3
  2. package/package.json +7 -5
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # package.json
1
+ ## package.json
2
2
  ```json
3
3
  {
4
4
  "scripts": {
@@ -6,9 +6,8 @@
6
6
  }
7
7
  }
8
8
  ```
9
- 使用:yarn api -i 12345678 或 yarn api --id 12345678
10
9
 
11
- # 配置文件(./apis/.api-config.ts)
10
+ ## 配置文件(./apis/.api-config.ts)
12
11
  ```typescript
13
12
  import { ConfigModels } from 'sy-api-pro';
14
13
 
@@ -30,3 +29,8 @@ const config: ConfigModels = {
30
29
 
31
30
  module.exports = config;
32
31
  ```
32
+
33
+ ## 使用
34
+ ```text
35
+ yarn api -i 12345 或 yarn api --id 12345
36
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sy-api-pro",
3
- "version": "0.0.2",
3
+ "version": "0.0.6",
4
4
  "main": "./bin/index.js",
5
5
  "types": "./bin/index.d.ts",
6
6
  "bin": {
@@ -20,18 +20,20 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "build": "vite build",
23
- "api": "ts-node src/index.ts --config ./src/.api-config.ts --project-id 804"
23
+ "api": "ts-node src/index.ts --config ./src/.api-config.ts --project-id 804",
24
+ "apiDist": "ts-node bin/index.js --config ./src/.api-config.ts --project-id 804"
24
25
  },
26
+ "description": "...",
25
27
  "dependencies": {
26
28
  "axios": "^0.24.0",
27
29
  "chalk": "^4.1.2",
28
30
  "commander": "^8.3.0",
29
- "ts-node": "^10.4.0"
31
+ "ts-node": "^10.4.0",
32
+ "typescript": "^4.5.4"
30
33
  },
31
34
  "devDependencies": {
32
- "@types/node": "^17.0.5",
35
+ "@types/node": "^17.0.8",
33
36
  "rollup-plugin-terser": "^7.0.2",
34
- "typescript": "^4.5.4",
35
37
  "vite": "^2.7.10"
36
38
  }
37
39
  }