File tree Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 33 "version" : " 0.1.4" ,
44 "description" : " OpenAPI React Query Codegen" ,
55 "bin" : {
6- "openapi-rq" : " dist/bin /cli.js"
6+ "openapi-rq" : " dist/src /cli.js"
77 },
88 "scripts" : {
99 "build" : " tsc -p tsconfig.json" ,
3232 "author" : " Daiki Urata (@7nohe)" ,
3333 "license" : " MIT" ,
3434 "dependencies" : {
35- "commander" : " ^9.4.0"
36- },
37- "devDependencies" : {
38- "@types/glob" : " ^7.2.0" ,
39- "@types/node" : " ^18.0.6" ,
35+ "commander" : " ^9.4.0" ,
4036 "glob" : " ^8.0.3" ,
41- "openapi-types" : " ^12.0.0" ,
4237 "openapi-typescript-codegen" : " ^0.23.0" ,
4338 "typescript" : " ^4.7.4"
39+ },
40+ "devDependencies" : {
41+ "@types/glob" : " ^7.2.0" ,
42+ "@types/node" : " ^18.0.6"
4443 }
4544}
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2- import { generate } from "../src /generate" ;
2+ import { generate } from "./generate" ;
33import { Command } from "commander" ;
44import packageJson from "../package.json" ;
55
Original file line number Diff line number Diff line change 11import { generate as generateTSClients } from "openapi-typescript-codegen" ;
22import { print } from "./print" ;
3- import { CLIOptions } from "../bin /cli" ;
3+ import { CLIOptions } from "./cli" ;
44import path from "path" ;
55import { createSource } from "./createSource" ;
66
Original file line number Diff line number Diff line change 11import fs from "fs" ;
22import path from "path" ;
3- import { CLIOptions } from "../bin /cli" ;
3+ import { CLIOptions } from "./cli" ;
44
55function printGeneratedTS ( result : string , options : CLIOptions ) {
66 const dir = path . join ( options . outputDir , "queries" )
Original file line number Diff line number Diff line change 1212 "lib" : [" ESNext" , " DOM" ]
1313 },
1414 "include" : [
15- " bin "
16- ],
15+ " src "
16+ ],
1717}
You can’t perform that action at this time.
0 commit comments