auto-api-hooks 1.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,74 @@
1
+ {
2
+ "name": "auto-api-hooks",
3
+ "version": "1.0.0",
4
+ "description": "Auto-generate type-safe React hooks from OpenAPI, Swagger, and GraphQL specs. Supports fetch, Axios, React Query, and SWR with optional Zod validation and MSW mock generation.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "bin": {
9
+ "auto-api-hooks": "./dist/cli.js"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "import": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "require": {
18
+ "types": "./dist/index.d.cts",
19
+ "default": "./dist/index.cjs"
20
+ }
21
+ }
22
+ },
23
+ "main": "./dist/index.cjs",
24
+ "module": "./dist/index.js",
25
+ "types": "./dist/index.d.ts",
26
+ "files": [
27
+ "dist",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "scripts": {
32
+ "build": "tsup",
33
+ "dev": "tsup --watch",
34
+ "test": "vitest run",
35
+ "test:watch": "vitest",
36
+ "test:coverage": "vitest run --coverage",
37
+ "typecheck": "tsc --noEmit",
38
+ "prepublishOnly": "npm run build"
39
+ },
40
+ "dependencies": {
41
+ "@apidevtools/swagger-parser": "^10.1.0",
42
+ "chokidar": "^4.0.0",
43
+ "commander": "^12.1.0",
44
+ "graphql": "^16.9.0",
45
+ "picocolors": "^1.1.0",
46
+ "ts-morph": "^24.0.0",
47
+ "yaml": "^2.6.0"
48
+ },
49
+ "devDependencies": {
50
+ "@types/node": "^22.10.0",
51
+ "tsup": "^8.3.5",
52
+ "typescript": "^5.7.2",
53
+ "vitest": "^2.1.8"
54
+ },
55
+ "keywords": [
56
+ "react-hooks",
57
+ "openapi",
58
+ "swagger",
59
+ "graphql",
60
+ "codegen",
61
+ "code-generation",
62
+ "react-query",
63
+ "tanstack-query",
64
+ "swr",
65
+ "axios",
66
+ "fetch",
67
+ "typescript",
68
+ "zod",
69
+ "msw",
70
+ "mock-server",
71
+ "api-client",
72
+ "hooks-generator"
73
+ ]
74
+ }