@7nohe/openapi-react-query-codegen 0.0.0-13d458778df8db161111e788ed4207a13a110724
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/README.md +300 -0
- package/dist/cli.mjs +41 -0
- package/dist/common.mjs +151 -0
- package/dist/constants.mjs +12 -0
- package/dist/createExports.mjs +66 -0
- package/dist/createImports.mjs +43 -0
- package/dist/createPrefetch.mjs +48 -0
- package/dist/createSource.mjs +83 -0
- package/dist/createUseMutation.mjs +76 -0
- package/dist/createUseQuery.mjs +201 -0
- package/dist/format.mjs +67 -0
- package/dist/generate.mjs +50 -0
- package/dist/print.mjs +22 -0
- package/dist/service.mjs +79 -0
- package/dist/util.mjs +16 -0
- package/package.json +78 -0
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@7nohe/openapi-react-query-codegen",
|
|
3
|
+
"version": "0.0.0-13d458778df8db161111e788ed4207a13a110724",
|
|
4
|
+
"description": "OpenAPI React Query Codegen",
|
|
5
|
+
"bin": {
|
|
6
|
+
"openapi-rq": "dist/cli.mjs"
|
|
7
|
+
},
|
|
8
|
+
"private": false,
|
|
9
|
+
"type": "module",
|
|
10
|
+
"workspaces": [
|
|
11
|
+
"examples/*"
|
|
12
|
+
],
|
|
13
|
+
"exports": [
|
|
14
|
+
{
|
|
15
|
+
"import": "./dist/generate.mjs",
|
|
16
|
+
"require": "./dist/generate.mjs",
|
|
17
|
+
"types": "./dist/generate.d.mts"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/7nohe/openapi-react-query-codegen.git"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/7nohe/openapi-react-query-codegen",
|
|
25
|
+
"bugs": "https://github.com/7nohe/openapi-react-query-codegen/issues",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"codegen",
|
|
31
|
+
"react-query",
|
|
32
|
+
"react",
|
|
33
|
+
"openapi",
|
|
34
|
+
"swagger",
|
|
35
|
+
"typescript",
|
|
36
|
+
"openapi-typescript-codegen",
|
|
37
|
+
"@hey-api/openapi-ts"
|
|
38
|
+
],
|
|
39
|
+
"author": "Daiki Urata (@7nohe)",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@hey-api/client-fetch": "0.1.10",
|
|
43
|
+
"@hey-api/openapi-ts": "0.49.0",
|
|
44
|
+
"@types/cross-spawn": "^6.0.6",
|
|
45
|
+
"cross-spawn": "^7.0.3"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@biomejs/biome": "^1.7.2",
|
|
49
|
+
"@types/node": "^20.10.6",
|
|
50
|
+
"@vitest/coverage-v8": "^1.5.0",
|
|
51
|
+
"commander": "^12.0.0",
|
|
52
|
+
"glob": "^10.3.10",
|
|
53
|
+
"lefthook": "^1.6.10",
|
|
54
|
+
"rimraf": "^5.0.5",
|
|
55
|
+
"ts-morph": "^23.0.0",
|
|
56
|
+
"ts-node": "^10.9.2",
|
|
57
|
+
"typescript": "^5.5.3",
|
|
58
|
+
"vitest": "^1.5.0"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"commander": "12.x",
|
|
62
|
+
"glob": "10.x",
|
|
63
|
+
"ts-morph": "23.x",
|
|
64
|
+
"typescript": "5.x"
|
|
65
|
+
},
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=14"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "rimraf dist && tsc -p tsconfig.json",
|
|
71
|
+
"lint": "biome check .",
|
|
72
|
+
"lint:fix": "biome check --apply .",
|
|
73
|
+
"preview": "npm run build && npm -C examples/react-app run generate:api",
|
|
74
|
+
"release": "npx bumpp --commit --tag --push",
|
|
75
|
+
"test": "vitest --coverage.enabled true",
|
|
76
|
+
"snapshot": "vitest --update"
|
|
77
|
+
}
|
|
78
|
+
}
|