yapi-apifox-to-typescript 4.0.0

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.
package/package.json ADDED
@@ -0,0 +1,108 @@
1
+ {
2
+ "name": "yapi-apifox-to-typescript",
3
+ "version": "4.0.0",
4
+ "description": "根据 YApi 或 Apifox 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。",
5
+ "keywords": [
6
+ "yapi",
7
+ "apifox",
8
+ "codegen",
9
+ "typescript"
10
+ ],
11
+ "homepage": "https://github.com/kekexunxun/yapi-to-typescript",
12
+ "bugs": {
13
+ "url": "https://github.com/kekexunxun/yapi-to-typescript/issues"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git@github.com:kekexunxun/yapi-to-typescript.git"
18
+ },
19
+ "license": "MIT",
20
+ "author": {
21
+ "name": "Robin",
22
+ "email": "liubingwei318@gmail.com",
23
+ "url": "https://github.com/kekexunxun"
24
+ },
25
+ "sideEffects": false,
26
+ "main": "lib/cjs/index.js",
27
+ "module": "lib/esm/index.js",
28
+ "types": "lib/esm/index.d.ts",
29
+ "bin": {
30
+ "ytt": "lib/cjs/cli.js"
31
+ },
32
+ "files": [
33
+ "lib"
34
+ ],
35
+ "scripts": {
36
+ "build": "haoma compile",
37
+ "docs": "npm run docs:build && gh-pages --dist docs/dist --dest handbook",
38
+ "docs:build": "dumi build",
39
+ "docs:dev": "dumi dev",
40
+ "release": "standard-version -a && yarn build && git push --follow-tags origin master && npm publish",
41
+ "releaseBeta": "standard-version -a --release-as patch --prerelease beta && yarn build && git push --follow-tags origin master && npm publish --tag next",
42
+ "testApi": "ts-node -T src/cli.ts"
43
+ },
44
+ "husky": {
45
+ "hooks": {
46
+ "pre-commit": "lint-staged"
47
+ }
48
+ },
49
+ "lint-staged": {
50
+ "*.{css,less,scss,sass,html,htm,vue,yml,yaml,json,md}": [
51
+ "prettier --write"
52
+ ],
53
+ "*.{js,jsx,ts,tsx}": [
54
+ "eslint --fix",
55
+ "prettier --write"
56
+ ]
57
+ },
58
+ "dependencies": {
59
+ "@babel/runtime": "^7.13.10",
60
+ "@types/json-schema": "^7.0.9",
61
+ "change-case": "^3.0.2",
62
+ "consola": "^2.3.0",
63
+ "dayjs": "^1.8.32",
64
+ "form-data": "^3.0.0",
65
+ "fs-extra": "^7.0.1",
66
+ "get-port": "^5.1.1",
67
+ "json-schema-to-typescript": "^10.1.4",
68
+ "json5": "^2.1.0",
69
+ "node-fetch": "^2",
70
+ "ora": "^3.4.0",
71
+ "prettier": "^2.7.1",
72
+ "prompts": "^2.0.4",
73
+ "proxy-agent": "^5.0.0",
74
+ "signal-exit": "^3.0.3",
75
+ "swagger-client": "3.18.4",
76
+ "to-json-schema": "^0.2.5",
77
+ "ts-node": "^8.0.2",
78
+ "typescript": "^4.2.3",
79
+ "vtils": "^4.57.0",
80
+ "yargs": "^16.2.0"
81
+ },
82
+ "devDependencies": {
83
+ "@types/fs-extra": "^5.0.4",
84
+ "@types/json5": "^0.0.30",
85
+ "@types/node": "^10.12.10",
86
+ "@types/node-fetch": "^2.6.2",
87
+ "@types/prompts": "^1.2.0",
88
+ "@types/react": "^16.9.2",
89
+ "@types/signal-exit": "^3.0.0",
90
+ "@types/swagger-schema-official": "^2.0.21",
91
+ "@types/to-json-schema": "^0.2.0",
92
+ "@types/yargs": "^16.0.1",
93
+ "axios": "^1.7.8",
94
+ "dumi": "^1.1.10",
95
+ "eslint": "^7",
96
+ "gh-pages": "^2.0.1",
97
+ "haoma": "^2.31.0",
98
+ "husky": "^4",
99
+ "lint-staged": "^10",
100
+ "openapi-types": "^7.0.1",
101
+ "standard-version": "^9.3.2",
102
+ "typedoc": "^0.14.2",
103
+ "typescript-snapshots-plugin": "^1.7.0"
104
+ },
105
+ "engines": {
106
+ "node": ">=10.19.0"
107
+ }
108
+ }