File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @lightbase/react-query-codegen" ,
3
- "version" : " 2.0.0" ,
2
+ "name" : " react-query-lightbase-codegen" ,
3
+ "version" : " 1.9.0" ,
4
+ "license" : " MIT" ,
4
5
"description" : " Generate Axios API clients and React Query options from OpenAPI specifications" ,
5
6
"exports" : " ./dist/index.js" ,
6
7
"files" : [" src" , " dist" ],
7
8
"author" : {
8
9
"name" : " Oliver Winter" ,
9
10
"email" : " owinter86@gmail.com"
10
11
},
12
+ "keywords" : [
13
+ " rest" ,
14
+ " client" ,
15
+ " swagger" ,
16
+ " open-api" ,
17
+ " fetch" ,
18
+ " data fetching" ,
19
+ " code-generation" ,
20
+ " react" ,
21
+ " react-query" ,
22
+ " axios" ,
23
+ " tanstack"
24
+ ],
11
25
"repository" : {
12
26
"type" : " git" ,
13
- "url" : " https://github.com/owinter86 /react-query-codegen"
27
+ "url" : " https://github.com/lightbasenl /react-query-codegen"
14
28
},
15
29
"scripts" : {
16
30
"build" : " tsc -p tsconfig.json" ,
33
47
"typescript" : " ^5.7.3"
34
48
},
35
49
"peerDependencies" : {
36
- "@tanstack/react-query" : " ^5.0 .0" ,
50
+ "@tanstack/react-query" : " >= 5.50 .0" ,
37
51
"axios" : " ^1.7.0"
38
52
}
39
53
}
Original file line number Diff line number Diff line change 1
- # @ lightbase/ react-query-codegen
1
+ # react-query-lightbase -codegen
2
2
3
3
Generate type-safe Axios API clients and React Query hooks from OpenAPI specifications.
4
4
@@ -15,7 +15,7 @@ Generate type-safe Axios API clients and React Query hooks from OpenAPI specific
15
15
## Installation
16
16
17
17
``` bash
18
- npm install @lightbase/ react-query-codegen
18
+ npm install react-query-lightbase -codegen
19
19
```
20
20
21
21
## Quick Start
@@ -25,7 +25,7 @@ npm install @lightbase/react-query-codegen
25
25
Create a script to generate your API code (e.g., ` scripts/generate.ts ` ):
26
26
27
27
``` typescript
28
- import { codegenerate } from ' @lightbase/ react-query-codegen' ;
28
+ import { codegenerate } from ' react-query-lightbase -codegen' ;
29
29
await codegenerate ({
30
30
specSource: ' ./specs/api.yaml' , // or array of specs
31
31
exportDir: ' ./src/generated'
You can’t perform that action at this time.
0 commit comments