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 11{
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" ,
45 "description" : " Generate Axios API clients and React Query options from OpenAPI specifications" ,
56 "exports" : " ./dist/index.js" ,
67 "files" : [" src" , " dist" ],
78 "author" : {
89 "name" : " Oliver Winter" ,
9101011 },
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+ ],
1125 "repository" : {
1226 "type" : " git" ,
13- "url" : " https://github.com/owinter86 /react-query-codegen"
27+ "url" : " https://github.com/lightbasenl /react-query-codegen"
1428 },
1529 "scripts" : {
1630 "build" : " tsc -p tsconfig.json" ,
3347 "typescript" : " ^5.7.3"
3448 },
3549 "peerDependencies" : {
36- "@tanstack/react-query" : " ^5.0 .0" ,
50+ "@tanstack/react-query" : " >= 5.50 .0" ,
3751 "axios" : " ^1.7.0"
3852 }
3953}
Original file line number Diff line number Diff line change 1- # @ lightbase/ react-query-codegen
1+ # react-query-lightbase -codegen
22
33Generate type-safe Axios API clients and React Query hooks from OpenAPI specifications.
44
@@ -15,7 +15,7 @@ Generate type-safe Axios API clients and React Query hooks from OpenAPI specific
1515## Installation
1616
1717``` bash
18- npm install @lightbase/ react-query-codegen
18+ npm install react-query-lightbase -codegen
1919```
2020
2121## Quick Start
@@ -25,7 +25,7 @@ npm install @lightbase/react-query-codegen
2525Create a script to generate your API code (e.g., ` scripts/generate.ts ` ):
2626
2727``` typescript
28- import { codegenerate } from ' @lightbase/ react-query-codegen' ;
28+ import { codegenerate } from ' react-query-lightbase -codegen' ;
2929await codegenerate ({
3030 specSource: ' ./specs/api.yaml' , // or array of specs
3131 exportDir: ' ./src/generated'
You can’t perform that action at this time.
0 commit comments