api-farmer 0.0.0 → 0.0.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.
package/package.json CHANGED
@@ -1,5 +1,93 @@
1
1
  {
2
2
  "name": "api-farmer",
3
- "version": "0.0.0",
4
- "license": "MIT"
3
+ "version": "0.0.2",
4
+ "description": "A cli to generate apis from a schema",
5
+ "keywords": [
6
+ "cli",
7
+ "api generator",
8
+ "openapi",
9
+ "swagger",
10
+ "json schema"
11
+ ],
12
+ "bugs": {
13
+ "url": "https://github.com/varletjs/api-farmer/issues"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/varletjs/api-farmer.git"
18
+ },
19
+ "license": "MIT",
20
+ "author": "haoziqaq <357229046@qq.com>",
21
+ "sideEffects": false,
22
+ "type": "module",
23
+ "exports": {
24
+ ".": {
25
+ "import": "./dist/index.js",
26
+ "require": "./dist/index.cjs"
27
+ }
28
+ },
29
+ "main": "dist/index.cjs",
30
+ "module": "dist/index.js",
31
+ "types": "dist/index.d.ts",
32
+ "bin": {
33
+ "af": "dist/cli.js"
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "simple-git-hooks": {
39
+ "pre-commit": "pnpm exec nano-staged --allow-empty",
40
+ "commit-msg": "pnpm exec vr commit-lint -p $1"
41
+ },
42
+ "nano-staged": {
43
+ "*.{md}": "prettier --write",
44
+ "*.{ts}": [
45
+ "prettier --write",
46
+ "eslint --fix"
47
+ ]
48
+ },
49
+ "dependencies": {
50
+ "@types/pluralize": "^0.0.33",
51
+ "@varlet/axle": "^0.10.1",
52
+ "commander": "^13.0.0",
53
+ "ejs": "^3.1.10",
54
+ "fs-extra": "^11.2.0",
55
+ "openapi-typescript": "^7.5.2",
56
+ "pluralize": "^8.0.0",
57
+ "rattail": "^1.0.19",
58
+ "rslog": "^1.2.3",
59
+ "swagger2openapi": "^7.0.8",
60
+ "unconfig": "^0.6.0",
61
+ "yaml": "^2.7.0"
62
+ },
63
+ "devDependencies": {
64
+ "@configurajs/eslint": "^0.1.0",
65
+ "@configurajs/prettier": "^0.1.1",
66
+ "@types/ejs": "^3.1.5",
67
+ "@types/fs-extra": "^11.0.4",
68
+ "@types/node": "^22.8.1",
69
+ "@types/swagger2openapi": "^7.0.4",
70
+ "@varlet/release": "^0.3.1",
71
+ "eslint": "^9.17.0",
72
+ "nano-staged": "0.8.0",
73
+ "prettier": "^3.4.2",
74
+ "rimraf": "^6.0.1",
75
+ "simple-git-hooks": "^2.11.1",
76
+ "tsup": "8.3.5",
77
+ "typescript": "5.3.3"
78
+ },
79
+ "peerDependencies": {
80
+ "eslint": "^9.17.0"
81
+ },
82
+ "engines": {
83
+ "pnpm": ">=9.0"
84
+ },
85
+ "scripts": {
86
+ "build": "tsup src/index.ts src/cli.ts --format esm,cjs --dts --clean --shims",
87
+ "clean": "rimraf node_modules dist",
88
+ "dev": "tsup src/index.ts src/cli.ts --format esm,cjs --watch --dts --shims",
89
+ "format": "prettier --write .",
90
+ "lint": "eslint . --fix",
91
+ "release": "vr release"
92
+ }
5
93
  }