File tree Expand file tree Collapse file tree 5 files changed +8
-5
lines changed
Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2- import { generate } from "./generate" ;
2+ import { generate } from "../src /generate" ;
33import { Command } from "commander" ;
44import packageJson from "../package.json" ;
55
Original file line number Diff line number Diff line change 33 "version" : " 0.1.1" ,
44 "description" : " OpenAPI React Query Codegen" ,
55 "bin" : {
6- "openapi-rq" : " src /cli.js"
6+ "openapi-rq" : " bin /cli.js"
77 },
88 "scripts" : {
99 "build" : " tsc -p tsconfig.json" ,
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 "./cli" ;
3+ import { CLIOptions } from "../bin /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 "./cli" ;
3+ import { CLIOptions } from "../bin /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 1111 "outDir" : " dist" ,
1212 "lib" : [" ESNext" , " DOM" ]
1313 },
14- "files" : [" src/cli.ts" ]
14+ "include" : [
15+ " bin" ,
16+ " package.json"
17+ ],
1518}
You can’t perform that action at this time.
0 commit comments